mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-12 10:15:22 +00:00
sipr: do not needlessly set *data_size to 0 when returning an error
This commit is contained in:
parent
9cb70ce34b
commit
0005f9a35b
@ -518,8 +518,6 @@ static int sipr_decode_frame(AVCodecContext *avctx, void *datap,
|
||||
av_log(avctx, AV_LOG_ERROR,
|
||||
"Error processing packet: packet size (%d) too small\n",
|
||||
avpkt->size);
|
||||
|
||||
*data_size = 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -530,8 +528,6 @@ static int sipr_decode_frame(AVCodecContext *avctx, void *datap,
|
||||
av_log(avctx, AV_LOG_ERROR,
|
||||
"Error processing packet: output buffer (%d) too small\n",
|
||||
*data_size);
|
||||
|
||||
*data_size = 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user