[MPlayer-cvslog] CVS: main/libmpdemux demux_lavf.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/libmpdemux
In directory mail:/var2/tmp/cvs-serv9711/libmpdemux
Modified Files:
demux_lavf.c
Log Message:
lavf demuxer with raw PCM fix (and a related hang)
Index: demux_lavf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_lavf.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- demux_lavf.c 17 Jul 2005 23:54:48 -0000 1.17
+++ demux_lavf.c 28 Jul 2005 13:43:23 -0000 1.18
@@ -217,6 +217,16 @@
sh_audio->channels= codec->channels;
sh_audio->samplerate= codec->sample_rate;
sh_audio->i_bps= codec->bit_rate/8;
+ switch (codec->codec_id) {
+ case CODEC_ID_PCM_S8:
+ case CODEC_ID_PCM_U8:
+ sh_audio->samplesize = 1;
+ case CODEC_ID_PCM_S16LE:
+ case CODEC_ID_PCM_S16BE:
+ case CODEC_ID_PCM_U16LE:
+ case CODEC_ID_PCM_U16BE:
+ sh_audio->samplesize = 2;
+ }
if(verbose>=1) print_wave_header(sh_audio->wf);
if(demuxer->audio->id != i && demuxer->audio->id != -1)
st->discard= AVDISCARD_ALL;
More information about the MPlayer-cvslog
mailing list