Browse Source

h264_mp4toannexb_bsf: always set idr_sps_pps_seen when SPS/PPS is seen.

In order not to break a sequence like "SPS IDR SPS IDR", the boolean
telling that the SPS/PPS has been seen should always be set.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4
Benoit Fouet Michael Niedermayer 11 years ago
parent
commit
42f25fe009
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/h264_mp4toannexb_bsf.c

+ 1
- 1
libavcodec/h264_mp4toannexb_bsf.c View File

@@ -176,7 +176,7 @@ static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
if (buf + nal_size > buf_end || nal_size < 0)
goto fail;

if (ctx->first_idr && (unit_type == 7 || unit_type == 8))
if (unit_type == 7 || unit_type == 8)
ctx->idr_sps_pps_seen = 1;

/* if this is a new IDR picture following an IDR picture, reset the idr flag.


Loading…
Cancel
Save