aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_mp4toannexb_bsf.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-03-15 16:18:40 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-03-15 16:48:42 +0100
commit6947b0c42e0649f0c8355442d1732d642e467902 (patch)
treebffb2d72049108372cbe46273998f3790dc860f0 /libavcodec/h264_mp4toannexb_bsf.c
parent27293b840ccae95ddb1f4d8af519e7962b0e373d (diff)
parentc76374c6db5f486672f9df223f43e4892bd655c9 (diff)
downloadffmpeg-6947b0c42e0649f0c8355442d1732d642e467902.tar.gz
Merge remote-tracking branch 'newdev/master'
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_mp4toannexb_bsf.c')
-rw-r--r--libavcodec/h264_mp4toannexb_bsf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/h264_mp4toannexb_bsf.c b/libavcodec/h264_mp4toannexb_bsf.c
index df49b34810..3754f2aee7 100644
--- a/libavcodec/h264_mp4toannexb_bsf.c
+++ b/libavcodec/h264_mp4toannexb_bsf.c
@@ -116,8 +116,11 @@ static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
memcpy(out+total_size-unit_size, extradata+2, unit_size);
extradata += 2+unit_size;
- if (!unit_nb && !sps_done++)
+ if (!unit_nb && !sps_done++) {
unit_nb = *extradata++; /* number of pps unit(s) */
+ if (unit_nb)
+ pps_seen = 1;
+ }
}
if(out)