[FFmpeg-cvslog] avformat/flvdec: reindent code for previous commit

Steven Liu git at videolan.org
Tue Aug 7 11:05:16 EEST 2018


ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Tue Aug  7 15:50:47 2018 +0800| [3b99bb38890375ebef2851a35bc048a37f6fd7f1] | committer: Steven Liu

avformat/flvdec: reindent code for previous commit

Signed-off-by: Steven Liu <lq at chinaffmpeg.org>

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

 libavformat/flvdec.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index ff91008371..ce3cac04ab 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -1252,19 +1252,19 @@ retry_duration:
 leave:
     last = avio_rb32(s->pb);
     if (!flv->trust_datasize) {
-    if (last != orig_size + 11 && last != orig_size + 10 &&
-        !avio_feof(s->pb) &&
-        (last != orig_size || !last) && last != flv->sum_flv_tag_size &&
-        !flv->broken_sizes) {
-        av_log(s, AV_LOG_ERROR, "Packet mismatch %d %d %d\n", last, orig_size + 11, flv->sum_flv_tag_size);
-        avio_seek(s->pb, pos + 1, SEEK_SET);
-        ret = resync(s);
-        av_packet_unref(pkt);
-        if (ret >= 0) {
-            goto retry;
+        if (last != orig_size + 11 && last != orig_size + 10 &&
+            !avio_feof(s->pb) &&
+            (last != orig_size || !last) && last != flv->sum_flv_tag_size &&
+            !flv->broken_sizes) {
+            av_log(s, AV_LOG_ERROR, "Packet mismatch %d %d %d\n", last, orig_size + 11, flv->sum_flv_tag_size);
+            avio_seek(s->pb, pos + 1, SEEK_SET);
+            ret = resync(s);
+            av_packet_unref(pkt);
+            if (ret >= 0) {
+                goto retry;
+            }
         }
     }
-    }
     return ret;
 }
 



More information about the ffmpeg-cvslog mailing list