Module: libav Branch: master Commit: 3c432631e9da0933f3309ab0b0448a97c7aebf7b
Author: Justin Ruggles <[email protected]> Committer: Justin Ruggles <[email protected]> Date: Wed Feb 1 16:26:37 2012 -0500 pcmenc: Do not set avpkt->size. It is already the correct size as set by ff_alloc_packet(). --- libavcodec/pcm.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index 1adaf70..594bd44 100644 --- 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; } _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
