mirror of https://github.com/mpv-player/mpv
asf<->y4m detection swapped
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3834 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0c4138440d
commit
b06e33b5f5
|
@ -415,14 +415,6 @@ if(file_format==DEMUXER_TYPE_UNKNOWN || file_format==DEMUXER_TYPE_AVI){
|
|||
}
|
||||
}
|
||||
}
|
||||
//=============== Try to open as ASF file: =================
|
||||
if(file_format==DEMUXER_TYPE_UNKNOWN || file_format==DEMUXER_TYPE_ASF){
|
||||
demuxer=new_demuxer(stream,DEMUXER_TYPE_ASF,audio_id,video_id,dvdsub_id);
|
||||
if(asf_check_header(demuxer)){
|
||||
mp_msg(MSGT_DEMUXER,MSGL_INFO,MSGTR_DetectedASFfile);
|
||||
file_format=DEMUXER_TYPE_ASF;
|
||||
}
|
||||
}
|
||||
//=============== Try to open as Y4M file: =================
|
||||
if(file_format==DEMUXER_TYPE_UNKNOWN || file_format==DEMUXER_TYPE_Y4M){
|
||||
demuxer=new_demuxer(stream,DEMUXER_TYPE_Y4M,audio_id,video_id,dvdsub_id);
|
||||
|
@ -431,6 +423,14 @@ if(file_format==DEMUXER_TYPE_UNKNOWN || file_format==DEMUXER_TYPE_Y4M){
|
|||
file_format=DEMUXER_TYPE_Y4M;
|
||||
}
|
||||
}
|
||||
//=============== Try to open as ASF file: =================
|
||||
if(file_format==DEMUXER_TYPE_UNKNOWN || file_format==DEMUXER_TYPE_ASF){
|
||||
demuxer=new_demuxer(stream,DEMUXER_TYPE_ASF,audio_id,video_id,dvdsub_id);
|
||||
if(asf_check_header(demuxer)){
|
||||
mp_msg(MSGT_DEMUXER,MSGL_INFO,MSGTR_DetectedASFfile);
|
||||
file_format=DEMUXER_TYPE_ASF;
|
||||
}
|
||||
}
|
||||
//=============== Try to open as NUV file: =================
|
||||
if(file_format==DEMUXER_TYPE_UNKNOWN || file_format==DEMUXER_TYPE_NUV){
|
||||
demuxer=new_demuxer(stream,DEMUXER_TYPE_NUV,audio_id,video_id,dvdsub_id);
|
||||
|
|
Loading…
Reference in New Issue