On 2012-01-10 16:19:57 -0500, Justin Ruggles wrote:
> This indicates that the actual frame size is based on the buf_size passed to
> avcodec_encode_audio().
> ---
>  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();

ok

Janne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to