aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-01-27 22:20:05 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-01-27 22:20:05 +0000
commit0d29b7d572920e03e96ca458bd2683abd1af113d (patch)
tree5c6f49d0d9e91b22bda071372d7a377d15963f36
parent9913860bfb09562b88e3b878606955dd1f886015 (diff)
downloadffmpeg-0d29b7d572920e03e96ca458bd2683abd1af113d.tar.gz
Add {} between if/else
Originally committed as revision 16837 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/4xm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavformat/4xm.c b/libavformat/4xm.c
index f3b1f192a4..4ccbd0ea34 100644
--- a/libavformat/4xm.c
+++ b/libavformat/4xm.c
@@ -205,11 +205,11 @@ static int fourxm_read_header(AVFormatContext *s,
st->codec->bit_rate = st->codec->channels * st->codec->sample_rate *
st->codec->bits_per_coded_sample;
st->codec->block_align = st->codec->channels * st->codec->bits_per_coded_sample;
- if (fourxm->tracks[current_track].adpcm)
+ if (fourxm->tracks[current_track].adpcm){
st->codec->codec_id = CODEC_ID_ADPCM_4XM;
- else if (st->codec->bits_per_coded_sample == 8)
+ }else if (st->codec->bits_per_coded_sample == 8){
st->codec->codec_id = CODEC_ID_PCM_U8;
- else
+ }else
st->codec->codec_id = CODEC_ID_PCM_S16LE;
}
}
@@ -279,9 +279,9 @@ static int fourxm_read_packet(AVFormatContext *s,
memcpy(pkt->data, header, 8);
ret = get_buffer(s->pb, &pkt->data[8], size);
- if (ret < 0)
+ if (ret < 0){
av_free_packet(pkt);
- else
+ }else
packet_read = 1;
break;
@@ -306,9 +306,9 @@ static int fourxm_read_packet(AVFormatContext *s,
2 * (fourxm->tracks[track_number].channels);
audio_frame_count /=
fourxm->tracks[track_number].channels;
- if (fourxm->tracks[track_number].adpcm)
+ if (fourxm->tracks[track_number].adpcm){
audio_frame_count *= 2;
- else
+ }else
audio_frame_count /=
(fourxm->tracks[track_number].bits / 8);
fourxm->tracks[track_number].audio_pts += audio_frame_count;