mpeg2: optimize scan for the end of the frame.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 9 Jan 2013 15:05:39 +0000 (16:05 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 9 Jan 2013 15:05:39 +0000 (16:05 +0100)
commit0ecb3a627bf5485cdb2be998fd78cdc07bf61a97
tree49fddbbccb705eb3d4a445ed46a38405565f50f8
parent3bc6078f32c4366a6c7839f63dfb35c2314bd5df
mpeg2: optimize scan for the end of the frame.

Heuristic: if the second start-code is available, check whether that
one marks the start of a new frame because e.g. this is a sequence
or picture header. This doesn't save much, since we already cache the
results.
gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c