pcmenc: set frame_size to 0.
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 10 Jan 2012 20:17:39 +0000 (15:17 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Wed, 11 Jan 2012 14:09:56 +0000 (09:09 -0500)
This indicates that the actual frame size is based on the buf_size passed to
avcodec_encode_audio().

libavcodec/pcm.c

index 76d5c10..3223112 100644 (file)
@@ -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();