diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-09-25 07:22:30 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-25 07:33:12 +0400 |
commit | fa15b1e7b94e86e548666d0d898469977cedc7c8 (patch) | |
tree | 4204139031eee672e0997b9a8f57fdcfe6ca4c67 /libavformat/bit.c | |
parent | dfc571ff183401f59da1c5ebd7bb853c17a720de (diff) |
bit: loose seekback & wrong bitrate code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/bit.c')
-rw-r--r-- | libavformat/bit.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libavformat/bit.c b/libavformat/bit.c index 774ddcb5ae..1fd011dfd2 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; } |