From 55e4f76ce83b88beff650e8d4d8ba8c08348e4dd Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 14 Feb 2013 14:05:50 +0100 Subject: demux_mpg: fix setting codec This made one case of DVD PCM audio not work. It still doesn't work, but that will be fixed with the following two commits. --- demux/demux_mpg.c | 1 + 1 file changed, 1 insertion(+) (limited to 'demux/demux_mpg.c') diff --git a/demux/demux_mpg.c b/demux/demux_mpg.c index 458ed9f926..8dea97ae28 100644 --- a/demux/demux_mpg.c +++ b/demux/demux_mpg.c @@ -572,6 +572,7 @@ static int demux_mpg_read_packet(demuxer_t *demux,int id){ len-=3; if(len<=0) mp_msg(MSGT_DEMUX,MSGL_V,"End of packet while searching for PCM header\n"); dvdpcm_header((sh_audio_t*)(ds->sh)); + mp_set_audio_codec_from_tag((sh_audio_t*)(ds->sh)); } // printf(" \n"); } // if(demux->audio->id==aid) -- cgit v1.2.3