pesparse: Fix stuffing byte handling
authorEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 20 Jul 2011 17:16:05 +0000 (19:16 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 20 Jul 2011 17:19:13 +0000 (19:19 +0200)
commitd0e8427b4e7735bf5abc5cff18a03483cee1d9b5
tree3687edacef62880f016c5c22c37ebfefc9cd4a10
parente8d24859ca5629198c581b570402e9a459839d7c
pesparse: Fix stuffing byte handling

We in fact get the size of the header (including stuffing bytes), therefore
use that instead of trying to skip 0xff bytes ourselves since some media
streams do start with 0xff (like mpeg audio's initial 0xfff).
gst/mpegtsdemux/pesparse.c
gst/mpegtsdemux/pesparse.h