diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-01 16:26:37 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-01 16:33:27 -0500 |
commit | 3c432631e9da0933f3309ab0b0448a97c7aebf7b (patch) | |
tree | 6c7e1b36b25d0238524697939cc9d6df5ab922d0 /libavcodec/pcm.c | |
parent | 1a670973a756e6e1a7a170d58f3589fd5ad4c088 (diff) | |
download | ffmpeg-3c432631e9da0933f3309ab0b0448a97c7aebf7b.tar.gz |
pcmenc: Do not set avpkt->size.
It is already the correct size as set by ff_alloc_packet().
Diffstat (limited to 'libavcodec/pcm.c')
-rw-r--r-- | libavcodec/pcm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index 1adaf70318..594bd444fe 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; } |