summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-09-14 20:55:51 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-09-14 20:55:51 +0200
commit0a12af2185f9fd940bb8cef3772c332699f5bd28 (patch)
treeba3bb3bde87f1927d57569a4f1ea09548e5cadb1
parent9d002d781876a3bc530c54a3f46c3c4ab99c2431 (diff)
downloadffmpeg-streaming-0a12af2185f9fd940bb8cef3772c332699f5bd28.zip
ffmpeg-streaming-0a12af2185f9fd940bb8cef3772c332699f5bd28.tar.gz
lavf/davs2: Do not mix declarations and code.
Fixes the following warning: libavformat/davs2.c:39:5: warning: ISO C90 forbids mixed declarations and code
-rw-r--r--libavformat/davs2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/davs2.c b/libavformat/davs2.c
index bca59a3..df2667f 100644
--- a/libavformat/davs2.c
+++ b/libavformat/davs2.c
@@ -33,12 +33,12 @@
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);
OpenPOWER on IntegriCloud