提交 f1322480 编写于 作者: J Justin Ruggles

avcodec: do not needlessly set packet size to 0 in avcodec_encode_audio2()

It is already set to 0 by av_free_packet()
上级 74e10b62
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册