OSDN Git Service

h264: skip start code search if the size of the nal unit is known
authorJanne Grunau <janne-libav@jannau.net>
Sun, 18 Dec 2011 21:42:36 +0000 (22:42 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Sun, 18 Dec 2011 22:52:53 +0000 (23:52 +0100)
commit87eebb3454ff0cd6af6ebf9e1d31bdfd1c3b601b
treec0640de45934f4262cca34dc6cfe009fd8a8a606
parent2e7905eee8d0f8813e703cacdd7b3ffdc4960656
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.
libavcodec/h264.c
libavcodec/h264.h
libavcodec/h264_parser.c