[FFmpeg-cvslog] avcodec/videotoolbox: cleanups

Aman Gupta git at videolan.org
Sat May 19 05:17:55 EEST 2018


ffmpeg | branch: release/4.0 | Aman Gupta <aman at tmm1.net> | Fri May  4 14:57:32 2018 -0700| [e40922c16c3e80e1f68f4517bb9a01516400289f] | committer: Aman Gupta

avcodec/videotoolbox: cleanups

No functional changes.

Signed-off-by: Aman Gupta <aman at tmm1.net>
(cherry picked from commit dd77cca1c4b45ec499435f4c484838f6b0b045fe)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e40922c16c3e80e1f68f4517bb9a01516400289f
---

 libavcodec/videotoolbox.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c
index 8671608a35..49f7f9e7dd 100644
--- a/libavcodec/videotoolbox.c
+++ b/libavcodec/videotoolbox.c
@@ -343,7 +343,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);
@@ -943,9 +943,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;
 }



More information about the ffmpeg-cvslog mailing list