[FFmpeg-cvslog] avcodec/hevc: remove videotoolbox hack

Aman Gupta git at videolan.org
Sat May 19 05:18:00 EEST 2018


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

avcodec/hevc: remove videotoolbox hack

No longer required since 63d875772d. The equivalent hack
for h264 was removed in that commit, but this one was missed.

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

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

 libavcodec/hevc_refs.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavcodec/hevc_refs.c b/libavcodec/hevc_refs.c
index e159a23a4e..7cf3a55725 100644
--- a/libavcodec/hevc_refs.c
+++ b/libavcodec/hevc_refs.c
@@ -208,9 +208,6 @@ int ff_hevc_output_frame(HEVCContext *s, AVFrame *out, int flush)
         if (nb_output) {
             HEVCFrame *frame = &s->DPB[min_idx];
 
-            if (frame->frame->format == AV_PIX_FMT_VIDEOTOOLBOX && frame->frame->buf[0]->size == 1)
-                return 0;
-
             ret = av_frame_ref(out, frame->frame);
             if (frame->flags & HEVC_FRAME_FLAG_BUMPING)
                 ff_hevc_unref_frame(s, frame, HEVC_FRAME_FLAG_OUTPUT | HEVC_FRAME_FLAG_BUMPING);



More information about the ffmpeg-cvslog mailing list