mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec: do not needlessly set packet size to 0 in avcodec_encode_audio2()
It is already set to 0 by av_free_packet()
This commit is contained in:
parent
74e10b6204
commit
f132248028
|
@ -870,7 +870,6 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
|
|||
if (!(avctx->codec->capabilities & CODEC_CAP_DELAY) && !frame) {
|
||||
av_free_packet(avpkt);
|
||||
av_init_packet(avpkt);
|
||||
avpkt->size = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue