projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88db555
)
check for a stuffing byte at the end of a slice
author
Stefan Gehrer
<stefan.gehrer@gmx.de>
Tue, 24 Feb 2009 15:56:53 +0000
(15:56 +0000)
committer
Stefan Gehrer
<stefan.gehrer@gmx.de>
Tue, 24 Feb 2009 15:56:53 +0000
(15:56 +0000)
Originally committed as revision 17559 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/cavsdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/cavsdec.c
b/libavcodec/cavsdec.c
index
d0c6bee
..
a1895bc
100644
(file)
--- a/
libavcodec/cavsdec.c
+++ b/
libavcodec/cavsdec.c
@@
-439,6
+439,9
@@
static inline int check_for_slice(AVSContext *h) {
if(h->mbx)
return 0;
align = (-get_bits_count(gb)) & 7;
+ /* check for stuffing byte */
+ if(!align && (show_bits(gb,8) == 0x80))
+ get_bits(gb,8);
if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) {
skip_bits_long(gb,24+align);
h->stc = get_bits(gb,8);