]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/msrledec.c
lavf/segment: fix crash when failing to open segment list
[ffmpeg] / libavcodec / msrledec.c
index 805802ae181f1c39550e066c0f6a4edc8dcaad46..f0cbde67ffc298a72534ec80b9773948d70fccff 100644 (file)
@@ -63,7 +63,7 @@ static int msrle_decode_pal4(AVCodecContext *avctx, AVFrame *pic,
                 stream_byte = bytestream2_get_byte(gb);
                 pixel_ptr += stream_byte;
                 stream_byte = bytestream2_get_byte(gb);
-                avpriv_request_sample(avctx, "Unused stream byte %X", stream_byte);
+                line -= stream_byte;
             } else {
                 // copy pixels from encoded stream
                 odd_pixel =  stream_byte & 1;