|
|
@@ -215,7 +215,7 @@ int ff_mjpeg_decode_dht(MJpegDecodeContext *s) |
|
|
|
|
|
|
|
int ff_mjpeg_decode_sof(MJpegDecodeContext *s) |
|
|
|
{ |
|
|
|
int len, nb_components, i, width, height, pix_fmt_id; |
|
|
|
int len, nb_components, i, width, height, pix_fmt_id, ret; |
|
|
|
int h_count[MAX_COMPONENTS]; |
|
|
|
int v_count[MAX_COMPONENTS]; |
|
|
|
|
|
|
@@ -326,7 +326,9 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s) |
|
|
|
height *= 2; |
|
|
|
} |
|
|
|
|
|
|
|
avcodec_set_dimensions(s->avctx, width, height); |
|
|
|
ret = ff_set_dimensions(s->avctx, width, height); |
|
|
|
if (ret < 0) |
|
|
|
return ret; |
|
|
|
|
|
|
|
s->first_picture = 0; |
|
|
|
} |
|
|
|