Commit 0a12af21 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

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
parent 9d002d78
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment