mmf: K&R formatting cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
Luca Barbato 2013-05-09 10:37:31 +02:00 committed by Diego Biurrun
parent f243bf7aa2
commit ee9a4dff4a

View File

@ -21,8 +21,8 @@
#include "libavutil/channel_layout.h"
#include "avformat.h"
#include "internal.h"
#include "avio_internal.h"
#include "internal.h"
#include "pcm.h"
#include "riff.h"
@ -70,7 +70,8 @@ static int mmf_write_header(AVFormatContext *s)
rate = mmf_rate_code(s->streams[0]->codec->sample_rate);
if (rate < 0) {
av_log(s, AV_LOG_ERROR, "Unsupported sample rate %d\n", s->streams[0]->codec->sample_rate);
av_log(s, AV_LOG_ERROR, "Unsupported sample rate %d\n",
s->streams[0]->codec->sample_rate);
return -1;
}
@ -200,8 +201,10 @@ static int mmf_read_header(AVFormatContext *s)
for (;; avio_skip(pb, size)) {
tag = avio_rl32(pb);
size = avio_rb32(pb);
if(tag == MKTAG('C','N','T','I')) continue;
if(tag == MKTAG('O','P','D','A')) continue;
if (tag == MKTAG('C', 'N', 'T', 'I'))
continue;
if (tag == MKTAG('O', 'P', 'D', 'A'))
continue;
break;
}
@ -231,8 +234,10 @@ static int mmf_read_header(AVFormatContext *s)
for (;; avio_skip(pb, size)) {
tag = avio_rl32(pb);
size = avio_rb32(pb);
if(tag == MKTAG('A','t','s','q')) continue;
if(tag == MKTAG('A','s','p','I')) continue;
if (tag == MKTAG('A', 't', 's', 'q'))
continue;
if (tag == MKTAG('A', 's', 'p', 'I'))
continue;
break;
}
@ -253,7 +258,8 @@ static int mmf_read_header(AVFormatContext *s)
st->codec->channels = 1;
st->codec->channel_layout = AV_CH_LAYOUT_MONO;
st->codec->bits_per_coded_sample = 4;
st->codec->bit_rate = st->codec->sample_rate * st->codec->bits_per_coded_sample;
st->codec->bit_rate = st->codec->sample_rate *
st->codec->bits_per_coded_sample;
avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate);
@ -262,8 +268,7 @@ static int mmf_read_header(AVFormatContext *s)
#define MAX_SIZE 4096
static int mmf_read_packet(AVFormatContext *s,
AVPacket *pkt)
static int mmf_read_packet(AVFormatContext *s, AVPacket *pkt)
{
MMFContext *mmf = s->priv_data;
int ret, size;
@ -303,6 +308,7 @@ AVInputFormat ff_mmf_demuxer = {
.read_seek = ff_pcm_read_seek,
};
#endif
#if CONFIG_MMF_MUXER
AVOutputFormat ff_mmf_muxer = {
.name = "mmf",