diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-03-21 23:49:25 +0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-05-07 20:14:05 +0400 |
commit | f1322480288e13110a209cadbd698f568b407b4f (patch) | |
tree | 3d894954595d436479cad5e017efe078455ac58c /libavcodec/utils.c | |
parent | 74e10b6204abcf6ad9625e1b9bdd9a7d998f5431 (diff) |
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.c | 1 |
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; } |