mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
10l
Originally committed as revision 3519 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4f8a831994
commit
f1cc95f0e9
@ -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,
|
|||||||
#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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user