mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-21 14:53:10 +00:00
avformat/utils: Remove demuxer specific frame_size fallback from ff_get_audio_frame_size()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1d7544b752
commit
986ec3417a
@ -719,10 +719,6 @@ int ff_get_audio_frame_size(AVCodecContext *enc, int size, int mux)
|
|||||||
{
|
{
|
||||||
int frame_size;
|
int frame_size;
|
||||||
|
|
||||||
/* give frame_size priority if demuxing */
|
|
||||||
if (!mux && enc->frame_size > 1)
|
|
||||||
return enc->frame_size;
|
|
||||||
|
|
||||||
if ((frame_size = av_get_audio_frame_duration(enc, size)) > 0)
|
if ((frame_size = av_get_audio_frame_duration(enc, size)) > 0)
|
||||||
return frame_size;
|
return frame_size;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user