]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mpeg12.c
hevc: pass the full HEVCNAL struct to decode_nal_unit
[ffmpeg] / libavcodec / mpeg12.c
index fc43a53701139d86fefeadc6877d9f7725767fd0..3128e8d1e3fbd1430aadb6ade811958b58593e82 100644 (file)
@@ -234,7 +234,7 @@ int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size,
                 }
             }
             if (pc->frame_start_found == 0 && s && state == PICTURE_START_CODE) {
-                ff_fetch_timestamp(s, i - 3, 1);
+                ff_fetch_timestamp(s, i - 3, 1, i > 3);
             }
         }
     }