[FFmpeg-cvslog] pcmenc: Do not set avpkt->size.

Justin Ruggles git at videolan.org
Fri Feb 3 04:15:57 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Wed Feb  1 16:26:37 2012 -0500| [3c432631e9da0933f3309ab0b0448a97c7aebf7b] | committer: Justin Ruggles

pcmenc: Do not set avpkt->size.

It is already the correct size as set by ff_alloc_packet().

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3c432631e9da0933f3309ab0b0448a97c7aebf7b
---

 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;
 }



More information about the ffmpeg-cvslog mailing list