[MPlayer-cvslog] r37362 - trunk/libmpdemux/demux_mpg.c
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Thu Jan 22 05:24:39 CET 2015
On 22.01.2015, at 03:29, SubJunk <subversion at mplayerhq.hu> wrote:
> Author: SubJunk
> Date: Thu Jan 22 03:29:44 2015
> New Revision: 37362
>
> Log:
> Fixed support for DVD audio
>
> Modified:
> trunk/libmpdemux/demux_mpg.c
>
> Modified: trunk/libmpdemux/demux_mpg.c
> ==============================================================================
> --- trunk/libmpdemux/demux_mpg.c Sun Jan 18 20:39:27 2015 (r37361)
> +++ trunk/libmpdemux/demux_mpg.c Thu Jan 22 03:29:44 2015 (r37362)
> @@ -1107,6 +1107,13 @@ static demuxer_t* demux_mpg_ps_open(demu
> {
> sh_video_t *sh_video = demuxer->video->sh;
>
> + if(demuxer->audio->id!=-2) {
> + if(!ds_fill_buffer(demuxer->audio)){
> + mp_msg(MSGT_DEMUXER,MSGL_INFO,"MPEG: " MSGTR_MissingAudioStream);
> + demuxer->audio->sh=NULL;
> + }
> + }
Why?
This is simply _wrong_ and I removed it for that reason.
The video probe code below will end up throwing away more or less the first second of audio if you do this!
Also DVD audio does work just fine, though setting ps_probe is necessary to have it detected reliably with e.g. -frames 0.
More information about the MPlayer-cvslog
mailing list