Browse Source

amr demuxer: do not set AVCodecContext.frame_size.

it is not necessary.
tags/n0.11
Justin Ruggles 13 years ago
parent
commit
ec2e767bf3
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      libavformat/amr.c

+ 0
- 2
libavformat/amr.c View File

@@ -100,14 +100,12 @@ static int amr_read_header(AVFormatContext *s)
st->codec->codec_tag = MKTAG('s', 'a', 'w', 'b'); st->codec->codec_tag = MKTAG('s', 'a', 'w', 'b');
st->codec->codec_id = CODEC_ID_AMR_WB; st->codec->codec_id = CODEC_ID_AMR_WB;
st->codec->sample_rate = 16000; st->codec->sample_rate = 16000;
st->codec->frame_size = 320;
} }
else else
{ {
st->codec->codec_tag = MKTAG('s', 'a', 'm', 'r'); st->codec->codec_tag = MKTAG('s', 'a', 'm', 'r');
st->codec->codec_id = CODEC_ID_AMR_NB; st->codec->codec_id = CODEC_ID_AMR_NB;
st->codec->sample_rate = 8000; st->codec->sample_rate = 8000;
st->codec->frame_size = 160;
} }
st->codec->channels = 1; st->codec->channels = 1;
st->codec->codec_type = AVMEDIA_TYPE_AUDIO; st->codec->codec_type = AVMEDIA_TYPE_AUDIO;


Loading…
Cancel
Save