typefind: strengthen check for valid H.263 picture layer
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Sat, 23 Jan 2016 02:26:01 +0000 (18:26 -0800)
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Wed, 17 Feb 2016 19:26:25 +0000 (11:26 -0800)
commit9cf5645860237294851ca0552f16720a4d27a39d
tree6797e602095ce03c65b2c24e11d4024ab4d314d8
parent5d78aab81081d157826e0228dc310b4fae9eb8e0
typefind: strengthen check for valid H.263 picture layer

Avoids some false positives leading to miss identification:

* Prevent picture start code emulation for the first 2 bytes read
* Add check for valid "picture coding type" and "PB-frames mode" combination

Additionally, change name on confusingly named TR var to what
it is, the layer's PTYPE.

https://bugzilla.gnome.org/show_bug.cgi?id=693263
gst/typefind/gsttypefindfunctions.c