diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-05-28 19:05:15 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-05-28 19:05:15 +0200 |
commit | 5cd947d81b3b6dcfbb1f42e800270a4da5dbbcac (patch) | |
tree | 91fd7f7edab1456838f3e76a1974e9a8ee610d5c /libavcodec/r210dec.c | |
parent | 77cea13f0521d4c481ab163220017404c1a13f19 (diff) | |
download | ffmpeg-5cd947d81b3b6dcfbb1f42e800270a4da5dbbcac.tar.gz |
Fix r10k codec for widths that are not multiples of 64.
Fixes ticket #1358
Diffstat (limited to 'libavcodec/r210dec.c')
-rw-r--r-- | libavcodec/r210dec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/r210dec.c b/libavcodec/r210dec.c index b81a4f22c7..07dc5886b8 100644 --- a/libavcodec/r210dec.c +++ b/libavcodec/r210dec.c @@ -41,7 +41,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, int h, w; AVFrame *pic = avctx->coded_frame; const uint32_t *src = (const uint32_t *)avpkt->data; - int aligned_width = FFALIGN(avctx->width, 64); + int aligned_width = FFALIGN(avctx->width, + avctx->codec_id == CODEC_ID_R10K ? 1 : 64); uint8_t *dst_line; if (pic->data[0]) |