mpeg4video: ignore broken GOP headers
authorAnatoly Nenashev <anatoly.nenashev@ovsoft.ru>
Thu, 10 Feb 2011 16:09:48 +0000 (16:09 +0000)
committerMans Rullgard <mans@mansr.com>
Sun, 13 Feb 2011 16:22:14 +0000 (16:22 +0000)
commit7a4abe5912405474039198823d451b2a38361c48
tree5d3da001ab59dc034d003cd13e0e75803b9452a5
parent5d57846bba7010dc6ee65c3503dd06600e5441a5
mpeg4video: ignore broken GOP headers

Some MPEG4 cameras produce files with empty GOP headers.
This patch makes the decoder ignore such broken headers and proceed
with the following I-frame.  Without this change, the following
start code is missed resulting in the entire I-frame being skipped.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/mpeg4videodec.c