mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-30 20:16:42 +08:00
data_size = 0 cleanup
Originally committed as revision 3146 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -1724,8 +1724,6 @@ static int mjpeg_decode_frame(AVCodecContext *avctx,
|
||||
int start_code;
|
||||
AVFrame *picture = data;
|
||||
|
||||
*data_size = 0;
|
||||
|
||||
/* no supplementary picture */
|
||||
if (buf_size == 0)
|
||||
return 0;
|
||||
@@ -1902,8 +1900,6 @@ static int mjpegb_decode_frame(AVCodecContext *avctx,
|
||||
uint32_t dqt_offs, dht_offs, sof_offs, sos_offs, second_field_offs;
|
||||
uint32_t field_size;
|
||||
|
||||
*data_size = 0;
|
||||
|
||||
/* no supplementary picture */
|
||||
if (buf_size == 0)
|
||||
return 0;
|
||||
@@ -2015,8 +2011,6 @@ static int sp5x_decode_frame(AVCodecContext *avctx,
|
||||
uint8_t *buf_ptr, *buf_end, *recoded;
|
||||
int i = 0, j = 0;
|
||||
|
||||
*data_size = 0;
|
||||
|
||||
/* no supplementary picture */
|
||||
if (buf_size == 0)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user