mirror of https://github.com/mpv-player/mpv
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:
parent
af6639500f
commit
55e4f76ce8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue