diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-01-20 23:09:27 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-01-20 23:09:27 +0000 |
commit | 5c4e1928c0e79438be23cbec9ce579d790bb985a (patch) | |
tree | ab1014f043ed0dfbe8f05c56b9c3c415d0a60a48 /libavformat/avienc.c | |
parent | 88e7a4d18c63799a21dff4a570ceb8008e310820 (diff) | |
download | ffmpeg-streaming-5c4e1928c0e79438be23cbec9ce579d790bb985a.zip ffmpeg-streaming-5c4e1928c0e79438be23cbec9ce579d790bb985a.tar.gz |
fix indention (dunno why it was messed up ...)
Originally committed as revision 7592 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avienc.c')
-rw-r--r-- | libavformat/avienc.c | 57 |
1 files changed, 28 insertions, 29 deletions
diff --git a/libavformat/avienc.c b/libavformat/avienc.c index 2bc7794..8a026e0 100644 --- a/libavformat/avienc.c +++ b/libavformat/avienc.c @@ -519,38 +519,37 @@ static int avi_write_trailer(AVFormatContext *s) int i, j, n, nb_frames; offset_t file_size; - if (!url_is_streamed(pb)) - { - if (avi->riff_id == 1) { - end_tag(pb, avi->movi_list); - res = avi_write_idx1(s); - end_tag(pb, avi->riff_start); - } else { - avi_write_ix(s); - end_tag(pb, avi->movi_list); - end_tag(pb, avi->riff_start); - - file_size = url_ftell(pb); - url_fseek(pb, avi->odml_list - 8, SEEK_SET); - put_tag(pb, "LIST"); /* Making this AVI OpenDML one */ - url_fskip(pb, 16); - - for (n=nb_frames=0;n<s->nb_streams;n++) { - AVCodecContext *stream = s->streams[n]->codec; - if (stream->codec_type == CODEC_TYPE_VIDEO) { - if (nb_frames < avi->packet_count[n]) - nb_frames = avi->packet_count[n]; - } else { - if (stream->codec_id == CODEC_ID_MP2 || stream->codec_id == CODEC_ID_MP3) { - nb_frames += avi->packet_count[n]; + if (!url_is_streamed(pb)){ + if (avi->riff_id == 1) { + end_tag(pb, avi->movi_list); + res = avi_write_idx1(s); + end_tag(pb, avi->riff_start); + } else { + avi_write_ix(s); + end_tag(pb, avi->movi_list); + end_tag(pb, avi->riff_start); + + file_size = url_ftell(pb); + url_fseek(pb, avi->odml_list - 8, SEEK_SET); + put_tag(pb, "LIST"); /* Making this AVI OpenDML one */ + url_fskip(pb, 16); + + for (n=nb_frames=0;n<s->nb_streams;n++) { + AVCodecContext *stream = s->streams[n]->codec; + if (stream->codec_type == CODEC_TYPE_VIDEO) { + if (nb_frames < avi->packet_count[n]) + nb_frames = avi->packet_count[n]; + } else { + if (stream->codec_id == CODEC_ID_MP2 || stream->codec_id == CODEC_ID_MP3) { + nb_frames += avi->packet_count[n]; + } } } - } - put_le32(pb, nb_frames); - url_fseek(pb, file_size, SEEK_SET); + put_le32(pb, nb_frames); + url_fseek(pb, file_size, SEEK_SET); - avi_write_counters(s, avi->riff_id); - } + avi_write_counters(s, avi->riff_id); + } } put_flush_packet(pb); |