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:
1a67097
)
pcmenc: Do not set avpkt->size.
author
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 1 Feb 2012 21:26:37 +0000
(16:26 -0500)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 1 Feb 2012 21:33:27 +0000
(16:33 -0500)
It is already the correct size as set by ff_alloc_packet().
libavcodec/pcm.c
patch
|
blob
|
history
diff --git
a/libavcodec/pcm.c
b/libavcodec/pcm.c
index
1adaf70
..
594bd44
100644
(file)
--- a/
libavcodec/pcm.c
+++ b/
libavcodec/pcm.c
@@
-193,7
+193,6
@@
static int pcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
return -1;
}
- avpkt->size = frame->nb_samples * avctx->channels * sample_size;
*got_packet_ptr = 1;
return 0;
}