diff --git a/libavcodec/utils.c b/libavcodec/utils.c index e8733c6299..ca386646c3 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -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; }