[MPlayer-dev-eng] [PATCH] for some issues

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Thu Sep 15 12:12:54 CEST 2005


Hi,
On Thu, Sep 15, 2005 at 01:16:19PM +0800, Meihui Fan wrote:
> 	  switch(priv->frmt) {
> 	  case WAV:
> -	    pos -= (pos % (sh_audio->channels * sh_audio->samplesize) );
> +	    pos += (sh_audio->wf->nBlockAlign >> 1);
> +	    pos -= ((pos - demuxer->movi_start) % sh_audio->wf->nBlockAlign);

Not acceptable by this, because in the past -ao pcm produced files with
blockalign set to 0. Also I find it overly complicated, wouldn't
if (sh_audio->wf && sh_audio->wf->nBlockAlign)
pos += pos % sh_audio->wf->nBlockAlign;
be good enough?

> -	#define MAXFRAMESIZE 1280
> +	#define MAXFRAMESIZE  1792

Do you have samples? And what is the effect when this value is too
small?

> 	$(PRG_CFG): version.h codec-cfg.c codec-cfg.h
> -		$(HOST_CC) $(HOST_CFLAGS) -I. -g codec-cfg.c mp_msg.c -o $(PRG_CFG) -DCODECS2HTML $(EXTRA_LIB) $(EXTRA_INC) $(I18NLIBS)
> +		$(HOST_CC) $(HOST_CFLAGS) -I. -g codec-cfg.c mp_msg.c -o $(PRG_CFG) -DCODECS2HTML

I agree with removing I18NLIBS, but I am unsure about the others...

Greetings,
Reimar Döffinger




More information about the MPlayer-dev-eng mailing list