diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-01-10 16:56:37 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-10 17:08:04 +0100 |
commit | e1d8ef4c21f6f08ba6b7b07ba9f1856e871659f4 (patch) | |
tree | 60bb6ce74667cebd4f464a7a4bf7d1eb1e52c561 /libavcodec | |
parent | 4cb9c2013662b46e8101d6fdf6c69d41668c8b9a (diff) | |
download | ffmpeg-streaming-e1d8ef4c21f6f08ba6b7b07ba9f1856e871659f4.zip ffmpeg-streaming-e1d8ef4c21f6f08ba6b7b07ba9f1856e871659f4.tar.gz |
avcodec/mss2: fix chroma dimensions
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mss2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mss2.c b/libavcodec/mss2.c index 09b7abd..505c981 100644 --- a/libavcodec/mss2.c +++ b/libavcodec/mss2.c @@ -421,8 +421,8 @@ static int decode_wmv9(AVCodecContext *avctx, const uint8_t *buf, int buf_size, if (v->respic == 3) { ctx->dsp.upsample_plane(f->data[0], f->linesize[0], w, h); - ctx->dsp.upsample_plane(f->data[1], f->linesize[1], w >> 1, h >> 1); - ctx->dsp.upsample_plane(f->data[2], f->linesize[2], w >> 1, h >> 1); + ctx->dsp.upsample_plane(f->data[1], f->linesize[1], w+1 >> 1, h+1 >> 1); + ctx->dsp.upsample_plane(f->data[2], f->linesize[2], w+1 >> 1, h+1 >> 1); } else if (v->respic) avpriv_request_sample(v->s.avctx, "Asymmetric WMV9 rectangle subsampling"); |