]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/hevc_refs.c
tableprint_vlc.h: Should not be checked by checkheaders.
[ffmpeg] / libavcodec / hevc_refs.c
index b3a97871d55400e14431625f0e7022081b70cf43..92196a1ee9918379a8b2ba026d649c6f38a91d71 100644 (file)
@@ -173,7 +173,7 @@ int ff_hevc_output_frame(HEVCContext *s, AVFrame *out, int flush)
             if ((frame->flags & HEVC_FRAME_FLAG_OUTPUT) &&
                 frame->sequence == s->seq_output) {
                 nb_output++;
-                if (frame->poc < min_poc) {
+                if (frame->poc < min_poc || nb_output == 1) {
                     min_poc = frame->poc;
                     min_idx = i;
                 }