On 16/05/14 13:25, nu774 wrote: > This fixes incorrect wSamplesPerBlock(=0) written for ADPCM_IMA_WAV > --- > libavformat/riffenc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/riffenc.c b/libavformat/riffenc.c > index 66c0ff2..9cdf301 100644 > --- a/libavformat/riffenc.c > +++ b/libavformat/riffenc.c > @@ -67,7 +67,7 @@ int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc, > int flags) > /* We use the known constant frame size for the codec if known, otherwise > * fall back on using AVCodecContext.frame_size, which is not as reliable > * for indicating packet duration. */ > - frame_size = av_get_audio_frame_duration(enc, 0); > + frame_size = av_get_audio_frame_duration(enc, enc->block_align); > if (!frame_size) > frame_size = enc->frame_size; > >
Seems to work as you explained, merging today. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
