summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_mp4toannexb_bsf.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-26 18:09:23 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-26 18:09:23 +0100
commit289b149cecb381522cc9ccdf382825330169c655 (patch)
tree9180143a9caabe01388b9d44919ddab629fb1cfe /libavcodec/h264_mp4toannexb_bsf.c
parent4998a72b497fd4b658887aebb3a2240aefe1fc81 (diff)
downloadffmpeg-streaming-289b149cecb381522cc9ccdf382825330169c655.zip
ffmpeg-streaming-289b149cecb381522cc9ccdf382825330169c655.tar.gz
avcodec/h264_mp4toannexb_bsf: prepend global headers before any in stream parameter sets
Fixes h264_mp4toannexb_bsf_failure.mkv 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 8c0fbb3..0f142bb 100644
--- a/libavcodec/h264_mp4toannexb_bsf.c
+++ b/libavcodec/h264_mp4toannexb_bsf.c
@@ -175,7 +175,7 @@ static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
goto fail;
/* prepend only to the first type 5 NAL unit of an IDR picture */
- if (ctx->first_idr && unit_type == 5) {
+ if (ctx->first_idr && (unit_type == 5 || unit_type == 7 || unit_type == 8)) {
if ((ret=alloc_and_copy(poutbuf, poutbuf_size,
avctx->extradata, avctx->extradata_size,
buf, nal_size)) < 0)
OpenPOWER on IntegriCloud