summaryrefslogtreecommitdiff
path: root/libavcodec/pcm.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-02-01 16:26:37 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-02-01 16:33:27 -0500
commit3c432631e9da0933f3309ab0b0448a97c7aebf7b (patch)
tree6c7e1b36b25d0238524697939cc9d6df5ab922d0 /libavcodec/pcm.c
parent1a670973a756e6e1a7a170d58f3589fd5ad4c088 (diff)
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.c1
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;
}