summaryrefslogtreecommitdiff
path: root/libavcodec/pcm.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-01-10 15:17:39 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-01-11 09:09:56 -0500
commit56f22b7e16006a4201ed4cf9d21e5ec26faea638 (patch)
tree4dffa4718089e50c1f2e482954077f9cfcb14873 /libavcodec/pcm.c
parentf01f6a847474755ee00a86c599cda3cbadef34fe (diff)
downloadffmpeg-56f22b7e16006a4201ed4cf9d21e5ec26faea638.tar.gz
pcmenc: set frame_size to 0.
This indicates that the actual frame size is based on the buf_size passed to avcodec_encode_audio().
Diffstat (limited to 'libavcodec/pcm.c')
-rw-r--r--libavcodec/pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c
index 76d5c100bc..32231125d2 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();