[FFmpeg-cvslog] pcmenc: set frame_size to 0.
Justin Ruggles
git at videolan.org
Thu Jan 12 01:22:47 CET 2012
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Tue Jan 10 15:17:39 2012 -0500| [56f22b7e16006a4201ed4cf9d21e5ec26faea638] | committer: Justin Ruggles
pcmenc: set frame_size to 0.
This indicates that the actual frame size is based on the buf_size passed to
avcodec_encode_audio().
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=56f22b7e16006a4201ed4cf9d21e5ec26faea638
---
libavcodec/pcm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c
index 76d5c10..3223112 100644
--- a/libavcodec/pcm.c
+++ b/libavcodec/pcm.c
@@ -33,7 +33,7 @@
static av_cold int pcm_encode_init(AVCodecContext *avctx)
{
- avctx->frame_size = 1;
+ avctx->frame_size = 0;
switch(avctx->codec->id) {
case CODEC_ID_PCM_ALAW:
pcm_alaw_tableinit();
More information about the ffmpeg-cvslog
mailing list