[MPlayer-cvslog] CVS: main/libmpcodecs ad_pcm.c,1.17,1.18

Reimar Döffinger CVS syncmail at mplayerhq.hu
Thu Jul 28 15:43:27 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv9711/libmpcodecs

Modified Files:
	ad_pcm.c 
Log Message:
lavf demuxer with raw PCM fix (and a related hang)


Index: ad_pcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_pcm.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- ad_pcm.c	26 Feb 2005 23:02:09 -0000	1.17
+++ ad_pcm.c	28 Jul 2005 13:43:24 -0000	1.18
@@ -67,6 +67,8 @@
        break;
     default: if(sh_audio->samplesize!=2) sh_audio->sample_format=AF_FORMAT_U8;
   }
+  if (!sh_audio->samplesize) // this would cause MPlayer to hang later
+    sh_audio->samplesize = 2;
   return 1;
 }
 




More information about the MPlayer-cvslog mailing list