[FFmpeg-cvslog] avcodec: do not needlessly set packet size to 0 in avcodec_encode_audio2()
Justin Ruggles
git at videolan.org
Tue May 8 22:07:19 CEST 2012
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Wed Mar 21 15:49:25 2012 -0400| [f1322480288e13110a209cadbd698f568b407b4f] | committer: 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()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f1322480288e13110a209cadbd698f568b407b4f
---
libavcodec/utils.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index e8733c6..ca38664 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;
}
More information about the ffmpeg-cvslog
mailing list