changeset 22148:19bfd17ba231

Support some weird AVI header, fixes bug 742 (http://samples.mplayerhq.hu/avi/samsung_crap_bug742.avi)
author reimar
date Tue, 06 Feb 2007 19:01:28 +0000
parents f4f90f0f5d2b
children 7b4f17dc2689
files libmpdemux/demux_avi.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_avi.c	Tue Feb 06 18:30:56 2007 +0000
+++ b/libmpdemux/demux_avi.c	Tue Feb 06 19:01:28 2007 +0000
@@ -807,6 +807,9 @@
     id=stream_read_dword_le(demuxer->stream); // "AVI "
     if(id==formtypeAVI)
       return DEMUXER_TYPE_AVI;
+    // "Samsung Digimax i6 PMP" crap according to bug 742
+    if(id==mmioFOURCC('A','V','I',0x19))
+      return DEMUXER_TYPE_AVI;
     if(id==mmioFOURCC('O','N','2','f')){
       mp_msg(MSGT_DEMUXER,MSGL_INFO,MSGTR_ON2AviFormat);
       return DEMUXER_TYPE_AVI;