]> git.sesse.net Git - ffmpeg/commitdiff
lavf/davs2: Do not mix declarations and code.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Fri, 14 Sep 2018 18:55:51 +0000 (20:55 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Fri, 14 Sep 2018 18:55:51 +0000 (20:55 +0200)
Fixes the following warning:
libavformat/davs2.c:39:5: warning: ISO C90 forbids mixed declarations and code

libavformat/davs2.c

index bca59a3c3fc44b717380e7b7ed4013645c21186f..df2667fec7cf6a3b82e0e7a37dbd5df9cef14f93 100644 (file)
 
 static int avs2_probe(AVProbeData *p)
 {
-    if (AV_RB32(p->buf) != 0x1B0){
-        return 0;
-    }
     uint32_t code= -1, hds=0, pic=0, seq=0;
     uint8_t state=0;
     const uint8_t *ptr = p->buf, *end = p->buf + p->buf_size, *sqb=0;
+    if (AV_RB32(p->buf) != 0x1B0){
+        return 0;
+    }
 
     while (ptr < end) {
         ptr = avpriv_find_start_code(ptr, end, &code);