diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-01-09 21:30:49 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-09 21:40:13 +0100 |
commit | 7c3700cd1d8683966b21fffbf02e326d0bd14e06 (patch) | |
tree | 4da64067691ff9cdac5c5ef6cdfeb10750fb0e4c | |
parent | af15c17daa5d8d2940c0263ba4d3ecec761c11ee (diff) | |
download | ffmpeg-7c3700cd1d8683966b21fffbf02e326d0bd14e06.tar.gz |
avcodec/mjpegdec: use the AVFrame width/height for flipping
This makes it possible to use the code with lowres
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/mjpegdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index f7e07452a4..676f741af4 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -2005,8 +2005,8 @@ the_end: avcodec_get_chroma_sub_sample(s->avctx->pix_fmt, &hshift, &vshift); for (index=0; index<4; index++) { uint8_t *dst = s->picture_ptr->data[index]; - int w = s->width; - int h = s->height; + int w = s->picture_ptr->width; + int h = s->picture_ptr->height; if(index && index<3){ w = FF_CEIL_RSHIFT(w, hshift); h = FF_CEIL_RSHIFT(h, vshift); |