summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_mp4toannexb_bsf.c
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@free.fr>2014-07-31 15:40:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-01 12:20:14 +0200
commit42f25fe0099158a2fcd3a923fe9391ae59487ada (patch)
treed6606fb6cc2598d1453912ac5aef3a0953cabb29 /libavcodec/h264_mp4toannexb_bsf.c
parent66af2a01d27506f4942d9982f48d2e99e9d1bd9c (diff)
downloadffmpeg-streaming-42f25fe0099158a2fcd3a923fe9391ae59487ada.zip
ffmpeg-streaming-42f25fe0099158a2fcd3a923fe9391ae59487ada.tar.gz
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>
Diffstat (limited to 'libavcodec/h264_mp4toannexb_bsf.c')
-rw-r--r--libavcodec/h264_mp4toannexb_bsf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_mp4toannexb_bsf.c b/libavcodec/h264_mp4toannexb_bsf.c
index a003a1d..e0c1385 100644
--- a/libavcodec/h264_mp4toannexb_bsf.c
+++ b/libavcodec/h264_mp4toannexb_bsf.c
@@ -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.
OpenPOWER on IntegriCloud