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.
This commit is contained in:
wm4 2013-02-14 14:05:50 +01:00
parent af6639500f
commit 55e4f76ce8
1 changed files with 1 additions and 0 deletions

View File

@ -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)