|
|
@@ -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) { |
|
|
|