mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02: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,
|
av_log(avctx, AV_LOG_ERROR,
|
||||||
"Error processing packet: packet size (%d) too small\n",
|
"Error processing packet: packet size (%d) too small\n",
|
||||||
avpkt->size);
|
avpkt->size);
|
||||||
|
|
||||||
*data_size = 0;
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -530,8 +528,6 @@ static int sipr_decode_frame(AVCodecContext *avctx, void *datap,
|
|||||||
av_log(avctx, AV_LOG_ERROR,
|
av_log(avctx, AV_LOG_ERROR,
|
||||||
"Error processing packet: output buffer (%d) too small\n",
|
"Error processing packet: output buffer (%d) too small\n",
|
||||||
*data_size);
|
*data_size);
|
||||||
|
|
||||||
*data_size = 0;
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user