[FFmpeg-devel] [PATCH 3/4] avcodec/hevc: remove videotoolbox hack

Aman Gupta ffmpeg at tmm1.net
Sat May 5 01:57:10 EEST 2018


From: Aman Gupta <aman at tmm1.net>

No longer required since 63d875772d. The equivalent hack
for h264 was removed in that commit, but this one was missed.
---
 libavcodec/hevc_refs.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavcodec/hevc_refs.c b/libavcodec/hevc_refs.c
index ac462d350b..68c730edcc 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);
-- 
2.14.2



More information about the ffmpeg-devel mailing list