avcodec/hevc: remove videotoolbox hack
authorAman Gupta <aman@tmm1.net>
Fri, 4 May 2018 21:57:50 +0000 (14:57 -0700)
committerAman Gupta <aman@tmm1.net>
Wed, 9 May 2018 19:26:31 +0000 (12:26 -0700)
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@tmm1.net>
libavcodec/hevc_refs.c

index ac462d3..68c730e 100644 (file)
@@ -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);