diff options
author | kinddragon <kinddragon@users.sourceforge.net> | 2010-05-02 19:58:17 +0400 |
---|---|---|
committer | kinddragon <kinddragon@users.sourceforge.net> | 2010-05-02 19:58:17 +0400 |
commit | 2adb832f6f28d4e6a608041d2ca972ae26f40ae6 (patch) | |
tree | ceca318b473616b498181c15f58f98e482ef0ecc | |
parent | adf9c01472f2de9695911c9979867d9d5c7bd375 (diff) |
Temporal ffmpeg fix with debug build
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1830 10f7b99b-c216-0410-bff0-8a66a9350fd8
-rw-r--r-- | src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/bitstream.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/bitstream.c b/src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/bitstream.c index c1dc7479f..40e2a0535 100644 --- a/src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/bitstream.c +++ b/src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/bitstream.c @@ -316,7 +316,9 @@ int init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes, GET_DATA(buf[j].symbol, symbols, i, symbols_wrap, symbols_size)\
else\
buf[j].symbol = i;\
- j++;\
+ j++;\
+ if(j >= nb_codes)\
+ break;\
}
COPY(buf[j].bits > nb_bits);
// qsort is the slowest part of init_vlc, and could probably be improved or avoided
|