mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
avcodec/faxcompr: negate uncompressed runs
Fixes remaining part of Ticket700 Found-by: ami_stuff Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
b2e95e012c
commit
012784052a
@ -155,7 +155,7 @@ static int decode_uncompressed(AVCodecContext *avctx, GetBitContext *gb,
|
||||
|
||||
for (k = 0; k < 2; k++) {
|
||||
if (codes[k]) {
|
||||
if (*mode == k) {
|
||||
if (*mode == !k) {
|
||||
*(*runs)++ = saved_run;
|
||||
if (*runs >= runend) {
|
||||
av_log(avctx, AV_LOG_ERROR, "uncompressed run overrun\n");
|
||||
|
Loading…
Reference in New Issue
Block a user