diff options
author | Janne Grunau <janne-libav@jannau.net> | 2011-12-18 22:42:36 +0100 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2011-12-18 23:52:53 +0100 |
commit | 87eebb3454ff0cd6af6ebf9e1d31bdfd1c3b601b (patch) | |
tree | c0640de45934f4262cca34dc6cfe009fd8a8a606 /libavcodec/h264_parser.c | |
parent | 2e7905eee8d0f8813e703cacdd7b3ffdc4960656 (diff) | |
download | ffmpeg-87eebb3454ff0cd6af6ebf9e1d31bdfd1c3b601b.tar.gz |
h264: skip start code search if the size of the nal unit is known
Start code emulation prevention is only required in Annex B bytestream
packed NAL units. For other coding formats the size is already known.
Looking for a start code prefix can result in false positives like in
http://streams.videolan.org/streams/mp4/Mr_MrsSmith-h264_aac.mp4
which has a false positive in the SPS.
Diffstat (limited to 'libavcodec/h264_parser.c')
-rw-r--r-- | libavcodec/h264_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c index 826c17a0f1..1967eface3 100644 --- a/libavcodec/h264_parser.c +++ b/libavcodec/h264_parser.c @@ -144,7 +144,7 @@ static inline int parse_nal_units(AVCodecParserContext *s, src_length = 20; break; } - ptr= ff_h264_decode_nal(h, buf, &dst_length, &consumed, src_length); + ptr= ff_h264_decode_nal(h, buf, &dst_length, &consumed, src_length, 0); if (ptr==NULL || dst_length < 0) break; |