[FFmpeg-cvslog] avformat/utils: Remove demuxer specific frame_size fallback from ff_get_audio_frame_size( )

Michael Niedermayer git at videolan.org
Thu Aug 14 03:10:58 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Aug 14 02:34:57 2014 +0200| [986ec3417abd2f77a4ee88ab9cb86d91556729d8] | committer: Michael Niedermayer

avformat/utils: Remove demuxer specific frame_size fallback from ff_get_audio_frame_size()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=986ec3417abd2f77a4ee88ab9cb86d91556729d8
---

 libavformat/utils.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 5bb5642..f995c4f 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -719,10 +719,6 @@ int ff_get_audio_frame_size(AVCodecContext *enc, int size, int mux)
 {
     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)
         return frame_size;
 



More information about the ffmpeg-cvslog mailing list