avformat/ipmovie: Fix late audio detection
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 26 Jul 2015 02:00:02 +0000 (04:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 26 Jul 2015 02:00:02 +0000 (04:00 +0200)
Fixes audio in Ticket117

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/ipmovie.c

index bebe866..51aed32 100644 (file)
@@ -631,7 +631,8 @@ static int ipmovie_read_header(AVFormatContext *s)
 
     if (ipmovie->audio_type) {
         return init_audio(s);
-    }
+    } else
+       s->ctx_flags |= AVFMTCTX_NOHEADER;
 
     return 0;
 }
@@ -656,7 +657,7 @@ static int ipmovie_read_packet(AVFormatContext *s,
     else if (ret == CHUNK_INIT_VIDEO || ret == CHUNK_INIT_AUDIO)
         continue;
     else
-        ret = -1;
+        continue;
 
     return ret;
     }