On Tue, Jan 31, 2017 at 12:49:56AM +0100, Andreas Cadhalpun wrote: >> How can you get a negative run, which would be required for this to happen? > Some values in ff_dc_alpha_run_vlc_le.table are negative, e.g.: > ff_dc_alpha_run_vlc_le.table[32] = {-1, 0}
This sounds like a strangeness in constructing the table, which shouldn't be papered over in the inner loop of the decoder. I might be missing something in how this table is used internally in the bitstream reader, but a code of 32 should just immediately hit 0 in the LSB and be interpreted as run=0. (There are no invalid codes in this VLC, so nothing like run=-1 should ever happen.) Do you have an actual input where your code makes a difference? /* Steinar */ -- Homepage: https://www.sesse.net/ _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel