0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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

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)