diff mbox

[FFmpeg-devel,1/4] avcodec/videotoolbox: cleanups

Message ID 20180504225711.69909-1-ffmpeg@tmm1.net
State Accepted
Commit dd77cca1c4b45ec499435f4c484838f6b0b045fe
Headers show

Commit Message

Aman Gupta May 4, 2018, 10:57 p.m. UTC
From: Aman Gupta <aman@tmm1.net>

No functional changes.
---
 libavcodec/videotoolbox.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c
index 57b6698e1b..1fd4be7135 100644
--- a/libavcodec/videotoolbox.c
+++ b/libavcodec/videotoolbox.c
@@ -340,7 +340,7 @@  int ff_videotoolbox_h264_start_frame(AVCodecContext *avctx,
                                      uint32_t size)
 {
     VTContext *vtctx = avctx->internal->hwaccel_priv_data;
-    H264Context *h  = avctx->priv_data;
+    H264Context *h = avctx->priv_data;
 
     if (h->is_avc == 1) {
         return videotoolbox_buffer_copy(vtctx, buffer, size);
@@ -935,9 +935,7 @@  static int videotoolbox_hevc_end_frame(AVCodecContext *avctx)
     HEVCContext *h = avctx->priv_data;
     AVFrame *frame = h->ref->frame;
     VTContext *vtctx = avctx->internal->hwaccel_priv_data;
-    int ret;
-
-    ret = videotoolbox_common_end_frame(avctx, frame);
+    int ret = videotoolbox_common_end_frame(avctx, frame);
     vtctx->bitstream_size = 0;
     return ret;
 }