mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
Merge commit '584f88409062f7a134e7391887899e8e723ab6ff'
* commit '584f88409062f7a134e7391887899e8e723ab6ff': riff: Pass block_align to estimate frame duration Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
43c18fec6e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user