diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-09-09 20:47:38 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-09-15 18:24:59 +0200 |
commit | 0c270239c2acec8cf2f3924e2b956e15a41e8d1c (patch) | |
tree | 0687d3f62a6548da797c2d517def1a1ee28981df /libavformat | |
parent | 5d1203f0635a0b14bea6cc609026936bd7ae9e3a (diff) | |
download | ffmpeg-0c270239c2acec8cf2f3924e2b956e15a41e8d1c.tar.gz |
lavf: cosmetics, reformat av_write_trailer().
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index c0da7f2fb9..b555ad0ff7 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3250,28 +3250,28 @@ int av_write_trailer(AVFormatContext *s) { int ret, i; - for(;;){ + for (;;) { AVPacket pkt; - ret= interleave_packet(s, &pkt, NULL, 1); - if(ret<0) //FIXME cleanup needed for ret<0 ? + ret = interleave_packet(s, &pkt, NULL, 1); + if (ret < 0) //FIXME cleanup needed for ret<0 ? goto fail; - if(!ret) + if (!ret) break; - ret= s->oformat->write_packet(s, &pkt); + ret = s->oformat->write_packet(s, &pkt); if (ret >= 0) s->streams[pkt.stream_index]->nb_frames++; av_free_packet(&pkt); - if(ret<0) + if (ret < 0) goto fail; } - if(s->oformat->write_trailer) + if (s->oformat->write_trailer) ret = s->oformat->write_trailer(s); fail: - for(i=0;i<s->nb_streams;i++) { + for (i = 0; i < s->nb_streams; i++) { av_freep(&s->streams[i]->priv_data); av_freep(&s->streams[i]->index_entries); } |