[MPlayer-cvslog] CVS: main/libmpcodecs dec_audio.c,1.36,1.37
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Fri Feb 25 12:47:52 CET 2005
Hi,
On Fri, Feb 25, 2005 at 11:39:19AM +0100, Zoltan Hidvegi CVS wrote:
> CVS change done by Zoltan Hidvegi CVS
>
> Update of /cvsroot/mplayer/main/libmpcodecs
> In directory mail:/var2/tmp/cvs-serv27919/libmpcodecs
>
> Modified Files:
> dec_audio.c
> Log Message:
> If -af-adv force=4 is in effect, use ADCTRL_QUERY_FORMAT to query the
> ad codec about float support and set floatne format if supported.
>
> Index: dec_audio.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/libmpcodecs/dec_audio.c,v
> retrieving revision 1.36
> retrieving revision 1.37
> diff -u -r1.36 -r1.37
> --- dec_audio.c 25 Feb 2005 10:21:14 -0000 1.36
> +++ dec_audio.c 25 Feb 2005 10:39:16 -0000 1.37
> @@ -49,6 +49,14 @@
>
> int init_audio_codec(sh_audio_t *sh_audio)
> {
> + if ((af_cfg.force & AF_INIT_FORMAT_MASK) == AF_INIT_FLOAT) {
> + int fmt = AF_FORMAT_FLOAT_NE;
> + if (mpadec->control(sh_audio, ADCTRL_QUERY_FORMAT,
> + &fmt) == CONTROL_TRUE) {
> + sh_audio->sample_format = fmt;
> + sh_audio->samplesize = 4;
> + }
> + }
To simplify format negotiation and volume control in decoder, I was
thinking if it was possible/a good idea to make the decoder part of the
filter chain as the first filter? Or alternatively insert a "dummy"
filter that translates the AF_CONTROL to ADCTRL_... Unfortunately I
don't see a way to do this without making it a hack, as af currently
can't directly access ad... Any ideas/suggestions?
Greetings,
Reimar Döffinger
More information about the MPlayer-cvslog
mailing list