[FFmpeg-cvslog] bit: loose seekback & wrong bitrate code.

Michael Niedermayer git at videolan.org
Sun Sep 25 05:45:42 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Sep 25 05:22:30 2011 +0200| [fa15b1e7b94e86e548666d0d898469977cedc7c8] | committer: Michael Niedermayer

bit: loose seekback & wrong bitrate code.

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

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

 libavformat/bit.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/libavformat/bit.c b/libavformat/bit.c
index 774ddcb..1fd011d 100644
--- a/libavformat/bit.c
+++ b/libavformat/bit.c
@@ -32,17 +32,6 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
     if (!st)
         return AVERROR(ENOMEM);
 
-    url_fskip(pb, 2);
-    switch(get_le16(pb))
-    {
-        case 0x40:
-            st->codec->bit_rate = 6400;
-            break;
-        case 0x50:
-            st->codec->bit_rate = 8000;
-            break;
-    }
-
     st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
     st->codec->codec_id=CODEC_ID_G729;
     st->codec->sample_rate=8000;
@@ -50,7 +39,6 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
     st->codec->channels=1;
 
     av_set_pts_info(st, 64, 1, 100);
-    url_fseek(pb, 0, SEEK_SET);
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list