Commit 177d18b1 authored by michael's avatar michael

10l


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3519 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5d9abccc
...@@ -859,8 +859,8 @@ static int mjpeg_decode_init(AVCodecContext *avctx) ...@@ -859,8 +859,8 @@ static int mjpeg_decode_init(AVCodecContext *avctx)
MpegEncContext s2; MpegEncContext s2;
s->avctx = avctx; s->avctx = avctx;
avctx->width = -((-avctx->width )) >> avctx->lowres; avctx->width = -((-avctx->width ) >> avctx->lowres);
avctx->height= -((-avctx->height)) >> avctx->lowres; avctx->height= -((-avctx->height) >> avctx->lowres);
/* ugly way to get the idct & scantable FIXME */ /* ugly way to get the idct & scantable FIXME */
memset(&s2, 0, sizeof(MpegEncContext)); memset(&s2, 0, sizeof(MpegEncContext));
...@@ -2070,8 +2070,10 @@ static int sp5x_decode_frame(AVCodecContext *avctx, ...@@ -2070,8 +2070,10 @@ static int sp5x_decode_frame(AVCodecContext *avctx,
#else #else
/* SOF */ /* SOF */
s->bits = 8; s->bits = 8;
s->width = avctx->width << avctx->lowres; s->width = avctx->width;
s->height = avctx->height<< avctx->lowres; s->height = avctx->height;
avctx->width = -((-avctx->width )>>avctx->lowres);
avctx->height = -((-avctx->height)>>avctx->lowres);
s->nb_components = 3; s->nb_components = 3;
s->component_id[0] = 0; s->component_id[0] = 0;
s->h_count[0] = 2; s->h_count[0] = 2;
......
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