[MPlayer-dev-eng] [PATCH] add lavfpref demuxer for formats where lavf is preferred over native demuxers

Roberto Togni rxt at rtogni.it
Sat Apr 7 21:00:49 CEST 2007


On Sat, 7 Apr 2007 20:16:28 +0200
Reimar Döffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> wrote:

> Hello,
> wanted to do this since a long time.
> It is a demuxer that does almost the same as the normal lavf one, only
> that it only accepts some formats and is tested much earlier.
> Does it look okay?
> I also removed a few entries from extension.c that should not be
> needed anymore.
> 

[...]

> Index: libmpdemux/demuxer.h
> ===================================================================
> --- libmpdemux/demuxer.h	(revision 22937)
> +++ libmpdemux/demuxer.h	(working copy)
> @@ -55,6 +55,7 @@
>  #define DEMUXER_TYPE_MPEG_PES 41
>  #define DEMUXER_TYPE_MPEG_GXF 42
>  #define DEMUXER_TYPE_NUT 43
> +#define DEMUXER_TYPE_LAVF_PREFERRED 44
>  
>  // This should always match the higest demuxer type number.
>  // Unless you want to disallow users to force the demuxer to some

You forgot to increment DEMUXER_TYPE_MAX, if it's wanted then imo this
should be given a bigger number.

The idea is good, just hope that no selected lavf demuxer has greedy
detection...

[...]

Ciao,
 Roberto



More information about the MPlayer-dev-eng mailing list