[MPlayer-dev-eng] [PATCH] -oac copy with ac3 sound and lavf ts demuxer issues (Was: Re: [MEncoder-users] Video/Audio asynchronous)

Matthias Hopf mat at mshopf.de
Tue Feb 20 16:14:25 CET 2007


One other thing to think about:

On Feb 20, 07 15:59:05 +0100, Nico Sabbi wrote:
> >Index: libmpdemux/demux_lavf.c
> >===================================================================
> >--- libmpdemux/demux_lavf.c	(revision 22261)
> >+++ libmpdemux/demux_lavf.c	(working copy)
> >@@ -295,7 +295,7 @@
> >            }
> >            sh_audio->wf= wf;
> >            sh_audio->audio.dwSampleSize= codec->block_align;
> >-            if(codec->frame_size && codec->sample_rate){
> >+            if(0 && codec->frame_size && codec->sample_rate){
> >                sh_audio->audio.dwScale=codec->frame_size;
> >                sh_audio->audio.dwRate= codec->sample_rate;
> >            }else{
> 
> as above, this stuff belongs to decoders, not to demuxers

dwScale and dwRate setting in demux_lavf.c was already present.
I only (hard-coded) selected the constant bitrate path.

Matthias

-- 
Matthias Hopf <mhopf at suse.de>      __        __   __
Maxfeldstr. 5 / 90409 Nuernberg   (_   | |  (_   |__          mat at mshopf.de
Phone +49-911-74053-715           __)  |_|  __)  |__  R & D   www.mshopf.de



More information about the MPlayer-dev-eng mailing list