diff mbox series

[FFmpeg-devel,2/2] avformat/utils: reindent

Message ID 20200215135510.15635-2-onemda@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/2] avformat/utils: avoid unsigned integer overflows
Related show

Checks

Context Check Description
andriy/ffmpeg-patchwork pending
andriy/ffmpeg-patchwork success Applied patch
andriy/ffmpeg-patchwork success Configure finished
andriy/ffmpeg-patchwork success Make finished
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Paul B Mahol Feb. 15, 2020, 1:55 p.m. UTC
Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 libavformat/utils.c | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/utils.c b/libavformat/utils.c
index ba2621aa28..eeb3055f77 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -4450,16 +4450,17 @@  void avformat_free_context(AVFormatContext *s)
     if (s->oformat && s->oformat->priv_class && s->priv_data)
         av_opt_free(s->priv_data);
 
-    if (s->nb_streams)
-    for (i = s->nb_streams - 1; i >= 0; i--)
-        ff_free_stream(s, s->streams[i]);
-
+    if (s->nb_streams) {
+        for (i = s->nb_streams - 1; i >= 0; i--)
+            ff_free_stream(s, s->streams[i]);
+    }
 
-    if (s->nb_programs)
-    for (i = s->nb_programs - 1; i >= 0; i--) {
-        av_dict_free(&s->programs[i]->metadata);
-        av_freep(&s->programs[i]->stream_index);
-        av_freep(&s->programs[i]);
+    if (s->nb_programs) {
+        for (i = s->nb_programs - 1; i >= 0; i--) {
+            av_dict_free(&s->programs[i]->metadata);
+            av_freep(&s->programs[i]->stream_index);
+            av_freep(&s->programs[i]);
+        }
     }
     av_freep(&s->programs);
     av_freep(&s->priv_data);