aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-05-17 11:01:02 +0200
committerPaul B Mahol <onemda@gmail.com>2016-05-17 11:02:44 +0200
commit95b20ad7b20c70c009022d729e24c130af975ed8 (patch)
tree99290cba499e9c0751baca8037bd55b42b12b7a1 /libavcodec
parentaf3e944e7edd0c89c66130a4c30dc3700e6c0950 (diff)
downloadffmpeg-95b20ad7b20c70c009022d729e24c130af975ed8.tar.gz
avcodec/iff: fix artifacts with uncompressed ham ANIMs
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/iff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/iff.c b/libavcodec/iff.c
index 9d7dce5596..fbb0daec98 100644
--- a/libavcodec/iff.c
+++ b/libavcodec/iff.c
@@ -1366,9 +1366,9 @@ static int decode_frame(AVCodecContext *avctx,
}
} else if (avctx->codec_tag == MKTAG('I', 'L', 'B', 'M') || // interleaved
avctx->codec_tag == MKTAG('A', 'N', 'I', 'M')) {
+ if (avctx->codec_tag == MKTAG('A', 'N', 'I', 'M'))
+ memcpy(s->video[0], buf, FFMIN(buf_end - buf, s->video_size));
if (avctx->pix_fmt == AV_PIX_FMT_PAL8 || avctx->pix_fmt == AV_PIX_FMT_GRAY8) {
- if (avctx->codec_tag == MKTAG('A', 'N', 'I', 'M'))
- memcpy(s->video[0], buf, FFMIN(buf_end - buf, s->video_size));
for (y = 0; y < avctx->height; y++) {
uint8_t *row = &frame->data[0][y * frame->linesize[0]];
memset(row, 0, avctx->width);