aboutsummaryrefslogtreecommitdiff
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer2014-08-14 02:42:14 +0200
committerMichael Niedermayer2014-08-14 03:00:39 +0200
commited488d1535d9e7b729dda2a6ffe8ecff481dad83 (patch)
tree57fc1f59c2a17fb691ee8093875018e3af1d46e3 /libavformat/utils.c
parent986ec3417abd2f77a4ee88ab9cb86d91556729d8 (diff)
Move frame_size fallback from ff_get_audio_frame_size() to av_get_audio_frame_duration()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index f995c4f7a5..c695e372a3 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -722,10 +722,6 @@ int ff_get_audio_frame_size(AVCodecContext *enc, int size, int mux)
if ((frame_size = av_get_audio_frame_duration(enc, size)) > 0)
return frame_size;
- /* Fall back on using frame_size if muxing. */
- if (enc->frame_size > 1)
- return enc->frame_size;
-
//For WMA we currently have no other means to calculate duration thus we
//do it here by assuming CBR, which is true for all known cases.
if (!mux && enc->bit_rate>0 && size>0 && enc->sample_rate>0 && enc->block_align>1) {