|
|
@ -1826,10 +1826,6 @@ static int mjpeg_decode_frame(AVCodecContext *avctx, |
|
|
|
int start_code; |
|
|
|
int start_code; |
|
|
|
AVFrame *picture = data; |
|
|
|
AVFrame *picture = data; |
|
|
|
|
|
|
|
|
|
|
|
/* no supplementary picture */ |
|
|
|
|
|
|
|
if (buf_size == 0) |
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
buf_ptr = buf; |
|
|
|
buf_ptr = buf; |
|
|
|
buf_end = buf + buf_size; |
|
|
|
buf_end = buf + buf_size; |
|
|
|
while (buf_ptr < buf_end) { |
|
|
|
while (buf_ptr < buf_end) { |
|
|
@ -2002,10 +1998,6 @@ static int mjpegb_decode_frame(AVCodecContext *avctx, |
|
|
|
uint32_t dqt_offs, dht_offs, sof_offs, sos_offs, second_field_offs; |
|
|
|
uint32_t dqt_offs, dht_offs, sof_offs, sos_offs, second_field_offs; |
|
|
|
uint32_t field_size, sod_offs; |
|
|
|
uint32_t field_size, sod_offs; |
|
|
|
|
|
|
|
|
|
|
|
/* no supplementary picture */ |
|
|
|
|
|
|
|
if (buf_size == 0) |
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
buf_ptr = buf; |
|
|
|
buf_ptr = buf; |
|
|
|
buf_end = buf + buf_size; |
|
|
|
buf_end = buf + buf_size; |
|
|
|
|
|
|
|
|
|
|
@ -2115,10 +2107,6 @@ static int sp5x_decode_frame(AVCodecContext *avctx, |
|
|
|
uint8_t *buf_ptr, *buf_end, *recoded; |
|
|
|
uint8_t *buf_ptr, *buf_end, *recoded; |
|
|
|
int i = 0, j = 0; |
|
|
|
int i = 0, j = 0; |
|
|
|
|
|
|
|
|
|
|
|
/* no supplementary picture */ |
|
|
|
|
|
|
|
if (buf_size == 0) |
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!avctx->width || !avctx->height) |
|
|
|
if (!avctx->width || !avctx->height) |
|
|
|
return -1; |
|
|
|
return -1; |
|
|
|
|
|
|
|
|
|
|
|