X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Famr.c;h=96f559b227ee5d0fa4eaa525ba826eff928ec1c6;hb=fad729fa505c0450482028c4a55c29fdc503dad7;hp=708eace1f9a0b2ae151192f63c7dfbb575d43a25;hpb=6e9651d1064b6a3e18c24f15d5b03bb9c5fc3393;p=ffmpeg diff --git a/libavformat/amr.c b/libavformat/amr.c index 708eace1f9a..96f559b227e 100644 --- a/libavformat/amr.c +++ b/libavformat/amr.c @@ -100,14 +100,12 @@ static int amr_read_header(AVFormatContext *s) st->codec->codec_tag = MKTAG('s', 'a', 'w', 'b'); st->codec->codec_id = CODEC_ID_AMR_WB; st->codec->sample_rate = 16000; - st->codec->frame_size = 320; } else { st->codec->codec_tag = MKTAG('s', 'a', 'm', 'r'); st->codec->codec_id = CODEC_ID_AMR_NB; st->codec->sample_rate = 8000; - st->codec->frame_size = 160; } st->codec->channels = 1; st->codec->codec_type = AVMEDIA_TYPE_AUDIO; @@ -179,7 +177,7 @@ AVInputFormat ff_amr_demuxer = { .read_probe = amr_probe, .read_header = amr_read_header, .read_packet = amr_read_packet, - .flags = AVFMT_GENERIC_INDEX, + .flags = AVFMT_GENERIC_INDEX, }; #endif