[FFmpeg-cvslog] ffplay: reindent after previous commit

Clément Bœsch git at videolan.org
Tue Jul 18 11:41:02 EEST 2017


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Tue Jul 18 10:24:48 2017 +0200| [af50fbaaeb6881d91e9d6b5fcdc56468c0b17ec2] | committer: Clément Bœsch

ffplay: reindent after previous commit

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=af50fbaaeb6881d91e9d6b5fcdc56468c0b17ec2
---

 ffplay.c | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index 2eaeebc826..7cc5ab1644 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2749,19 +2749,18 @@ static int read_thread(void *arg)
         AVDictionary **opts = setup_find_stream_info_opts(ic, codec_opts);
         int orig_nb_streams = ic->nb_streams;
 
-        // TODO: reindent
-    err = avformat_find_stream_info(ic, opts);
+        err = avformat_find_stream_info(ic, opts);
 
-    for (i = 0; i < orig_nb_streams; i++)
-        av_dict_free(&opts[i]);
-    av_freep(&opts);
+        for (i = 0; i < orig_nb_streams; i++)
+            av_dict_free(&opts[i]);
+        av_freep(&opts);
 
-    if (err < 0) {
-        av_log(NULL, AV_LOG_WARNING,
-               "%s: could not find codec parameters\n", is->filename);
-        ret = -1;
-        goto fail;
-    }
+        if (err < 0) {
+            av_log(NULL, AV_LOG_WARNING,
+                   "%s: could not find codec parameters\n", is->filename);
+            ret = -1;
+            goto fail;
+        }
     }
 
     if (ic->pb)



More information about the ffmpeg-cvslog mailing list