Commit 175a348b authored by jai_menon's avatar jai_menon

Use dimensions stored in AVCodecContext instead of local variables.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18954 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ad0a0301
......@@ -144,10 +144,10 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx,
adjust[x] = FFMAX(image->comps[x].prec - 8, 0);
}
for(y = 0; y < height; y++) {
index = y*width;
for(y = 0; y < avctx->height; y++) {
index = y*avctx->width;
img_ptr = picture->data[0] + y*picture->linesize[0];
for(x = 0; x < width; x++, index++) {
for(x = 0; x < avctx->width; x++, index++) {
*img_ptr++ = image->comps[0].data[index] >> adjust[0];
if(image->numcomps > 2 && check_image_attributes(image)) {
*img_ptr++ = image->comps[1].data[index] >> adjust[1];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment