This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
golomb: use HAVE_BITS_REMAINING() macro to prevent infloop on EOF.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:
libav-stable@libav.org
tags/n0.11
Ronald S. Bultje
13 years ago
parent
b44b41633f
commit
46b3fbc30b
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavcodec/golomb.h
+ 1
- 1
libavcodec/golomb.h
View File
@@ -135,7 +135,7 @@ static inline int svq3_get_ue_golomb(GetBitContext *gb){
ret = (ret << 4) | ff_interleaved_dirac_golomb_vlc_code[buf];
UPDATE_CACHE(re, gb);
buf = GET_CACHE(re, gb);
} while (
ret
);
} while (
HAVE_BITS_REMAINING(re, gb)
);
CLOSE_READER(re, gb);
return ret - 1;
Write
Preview
Loading…
Cancel
Save