You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-06 08:29:25 +02:00
avcodec/h264_mp4toannexb_bsf: reset the new IDR flag when SPS/PPS is seen.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
436206c175
commit
904cfd257d
@@ -186,9 +186,9 @@ static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
|
|||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
if (unit_type == 7)
|
if (unit_type == 7)
|
||||||
ctx->idr_sps_seen = 1;
|
ctx->idr_sps_seen = ctx->new_idr = 1;
|
||||||
else if (unit_type == 8) {
|
else if (unit_type == 8) {
|
||||||
ctx->idr_pps_seen = 1;
|
ctx->idr_pps_seen = ctx->new_idr = 1;
|
||||||
/* if SPS has not been seen yet, prepend the AVCC one to PPS */
|
/* if SPS has not been seen yet, prepend the AVCC one to PPS */
|
||||||
if (!ctx->idr_sps_seen) {
|
if (!ctx->idr_sps_seen) {
|
||||||
if (ctx->sps_offset == -1)
|
if (ctx->sps_offset == -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user