On Aug 24, 2014 6:01 AM, "Anton Khirnov" <[email protected]> wrote:
>
> It will not be set unless the codec context is used as the encoding
> context, which is discouraged. Instead set the frame size explicitly.
> ---
>  libavformat/riffenc.c | 7 +------
>  1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/libavformat/riffenc.c b/libavformat/riffenc.c
> index b83533a..da449c9 100644
> --- a/libavformat/riffenc.c
> +++ b/libavformat/riffenc.c
> @@ -63,8 +63,6 @@ int ff_put_wav_header(AVIOContext *pb, AVCodecContext
*enc)

>       * fall back on using AVCodecContext.frame_size, which is not as
reliable
>       * for indicating packet duration. */

This comment would probably be changed.

>      frame_size = av_get_audio_frame_duration(enc, enc->block_align);

Is this variable needed by any later operation?

[...]

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

Reply via email to