summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-03-21 15:49:25 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-05-07 12:14:05 -0400
commitf1322480288e13110a209cadbd698f568b407b4f (patch)
tree3d894954595d436479cad5e017efe078455ac58c /libavcodec/utils.c
parent74e10b6204abcf6ad9625e1b9bdd9a7d998f5431 (diff)
downloadffmpeg-f1322480288e13110a209cadbd698f568b407b4f.tar.gz
avcodec: do not needlessly set packet size to 0 in avcodec_encode_audio2()
It is already set to 0 by av_free_packet()
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c1
1 files changed, 0 insertions, 1 deletions
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;
}