summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_mp4toannexb_bsf.c
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@free.fr>2014-09-30 13:06:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-05 14:47:04 +0200
commit904cfd257db56f8146e7053bb9053ab53122f735 (patch)
tree39eefa4e629e2ab69be7b1e23c382b4e7aef4480 /libavcodec/h264_mp4toannexb_bsf.c
parent436206c1756ce10a5f1cab45ac1d8a974c352e5a (diff)
downloadffmpeg-streaming-904cfd257db56f8146e7053bb9053ab53122f735.zip
ffmpeg-streaming-904cfd257db56f8146e7053bb9053ab53122f735.tar.gz
avcodec/h264_mp4toannexb_bsf: reset the new IDR flag when SPS/PPS is seen.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_mp4toannexb_bsf.c')
-rw-r--r--libavcodec/h264_mp4toannexb_bsf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264_mp4toannexb_bsf.c b/libavcodec/h264_mp4toannexb_bsf.c
index be42304..ae96ee9 100644
--- a/libavcodec/h264_mp4toannexb_bsf.c
+++ b/libavcodec/h264_mp4toannexb_bsf.c
@@ -186,9 +186,9 @@ static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
goto fail;
if (unit_type == 7)
- ctx->idr_sps_seen = 1;
+ ctx->idr_sps_seen = ctx->new_idr = 1;
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 (!ctx->idr_sps_seen) {
if (ctx->sps_offset == -1)
OpenPOWER on IntegriCloud