mirror of
https://github.com/mpv-player/mpv
synced 2024-12-15 03:15:52 +00:00
Support ON2 variation of AVI format (.vp5 files)
Also closes bug #104 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13589 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2da87a2230
commit
e55f4b7153
@ -697,13 +697,17 @@ if(file_format==DEMUXER_TYPE_UNKNOWN || file_format==DEMUXER_TYPE_AVI){
|
||||
demuxer=new_demuxer(stream,DEMUXER_TYPE_AVI,audio_id,video_id,dvdsub_id);
|
||||
{ //---- RIFF header:
|
||||
int id=stream_read_dword_le(demuxer->stream); // "RIFF"
|
||||
if(id==mmioFOURCC('R','I','F','F')){
|
||||
if((id==mmioFOURCC('R','I','F','F')) || (id==mmioFOURCC('O','N','2',' '))){
|
||||
stream_read_dword_le(demuxer->stream); //filesize
|
||||
id=stream_read_dword_le(demuxer->stream); // "AVI "
|
||||
if(id==formtypeAVI){
|
||||
mp_msg(MSGT_DEMUXER,MSGL_INFO,MSGTR_Detected_XXX_FileFormat,"AVI");
|
||||
file_format=DEMUXER_TYPE_AVI;
|
||||
}
|
||||
if(id==mmioFOURCC('O','N','2','f')){
|
||||
mp_msg(MSGT_DEMUXER,MSGL_INFO,MSGTR_Detected_XXX_FileFormat,"ON2 AVI");
|
||||
file_format=DEMUXER_TYPE_AVI;
|
||||
}
|
||||
}
|
||||
if (file_format==DEMUXER_TYPE_UNKNOWN) {
|
||||
free_demuxer(demuxer);
|
||||
|
Loading…
Reference in New Issue
Block a user