You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Merge commit '9f1eccb97bf8894cb18b14f642500686505ef186'
* commit '9f1eccb97bf8894cb18b14f642500686505ef186': ff_parse_specific_params: do not use AVCodecContext.frame_size Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
@@ -242,12 +242,7 @@ void ff_parse_specific_params(AVStream *st, int *au_rate,
|
|||||||
int gcd;
|
int gcd;
|
||||||
int audio_frame_size;
|
int audio_frame_size;
|
||||||
|
|
||||||
/* 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. */
|
|
||||||
audio_frame_size = av_get_audio_frame_duration(codec, 0);
|
audio_frame_size = av_get_audio_frame_duration(codec, 0);
|
||||||
if (!audio_frame_size)
|
|
||||||
audio_frame_size = codec->frame_size;
|
|
||||||
|
|
||||||
*au_ssize = codec->block_align;
|
*au_ssize = codec->block_align;
|
||||||
if (audio_frame_size && codec->sample_rate) {
|
if (audio_frame_size && codec->sample_rate) {
|
||||||
|
Reference in New Issue
Block a user