summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChristian König <[email protected]>2013-09-09 03:57:58 -0600
committerChristian König <[email protected]>2013-09-25 10:58:58 +0200
commiteb1cb253b7d621d1c24c7c942a244932209db7fd (patch)
treeaa9da4ae9474bb0ee33215d77537af2b7af9f262 /src/gallium
parente3ecea9ddf49e1ec9e1a52ec0ab29c4a4e871a10 (diff)
vl/mpeg12: use new vlc function to search for start codes
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c b/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c
index cfa5eab94d6..b03ad071a5e 100644
--- a/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c
+++ b/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c
@@ -995,7 +995,7 @@ vl_mpg12_bs_decode(struct vl_mpg12_bs *bs,
bs->intra_dct_tbl = picture->intra_vlc_format ? tbl_B15 : tbl_B14_AC;
vl_vlc_init(&bs->vlc, num_buffers, buffers, sizes);
- while (vl_vlc_bits_left(&bs->vlc) > 32) {
+ while (vl_vlc_search_byte(&bs->vlc, ~0, 0x00) && vl_vlc_bits_left(&bs->vlc) > 32) {
uint32_t code = vl_vlc_peekbits(&bs->vlc, 32);
if (code >= 0x101 && code <= 0x1AF) {