mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 09:12:33 +00:00
avformat/ipmovie: Fix late audio detection
Fixes audio in Ticket117 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
8e0fdb03a2
commit
c3361b3a87
@ -631,7 +631,8 @@ static int ipmovie_read_header(AVFormatContext *s)
|
|||||||
|
|
||||||
if (ipmovie->audio_type) {
|
if (ipmovie->audio_type) {
|
||||||
return init_audio(s);
|
return init_audio(s);
|
||||||
}
|
} else
|
||||||
|
s->ctx_flags |= AVFMTCTX_NOHEADER;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -656,7 +657,7 @@ static int ipmovie_read_packet(AVFormatContext *s,
|
|||||||
else if (ret == CHUNK_INIT_VIDEO || ret == CHUNK_INIT_AUDIO)
|
else if (ret == CHUNK_INIT_VIDEO || ret == CHUNK_INIT_AUDIO)
|
||||||
continue;
|
continue;
|
||||||
else
|
else
|
||||||
ret = -1;
|
continue;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user