projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74e10b6
)
avcodec: do not needlessly set packet size to 0 in avcodec_encode_audio2()
author
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 21 Mar 2012 19:49:25 +0000
(15:49 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Mon, 7 May 2012 16:14:05 +0000
(12:14 -0400)
It is already set to 0 by av_free_packet()
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index e8733c6299fb994d38b19574f8a3b9833c0deb54..ca386646c3ed982fc3d05f8145e801e2dd0804c7 100644
(file)
--- 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;
}