[MPlayer-dev-eng] [PATCH] Multiple files for MEncoder
Julián Nuñez
julian at proteger.org.ar
Tue Feb 8 21:10:29 CET 2005
Oded Shimon wrote:
>On Tuesday 08 February 2005 19:55, D Richard Felker III wrote:
>
>
>>On Tue, Feb 08, 2005 at 11:27:35AM +0200, Oded Shimon wrote:
>>
>>
>>>As most of you probably know, I've been working on multiple file support
>>>for MEncoder. this patch is a "first draft". Things which could be
>>>improved: 1. Somehow remove redundancy by not having most of the same
>>>video init code twice. The init for each next file is a little different
>>>from the first file, so I couldn't just 'goto' to before the init, but
>>>repetitive code is always bad...
>>>
>>>
>>overall the patch looks like a good start, but i agree this part is
>>really bad. can the duplication be reduced by putting most of this
>>init code into a separate function call?
>>
>>
>
>Well, yes, but it would need filename, demuxer, sh_video, sh_audio, muxer,
>mux_v, mux_a, etc... it would be the longest param line ever.
>
>
What I do in those cases is to pack everything in a struct and pass a
pointer to that struct.
--
The danger lies not in the machine itself but in the user's failure to envision
the full consequences of the instructions he gives to it."
Neal Stephenson
What difference does it make to the dead, the orphans and the
homeless, whether the mad destruction is wrought under the name of
totalitarianism or the holy name of liberty or democracy?
Mahatma Gandhi (1869 - 1948), "Non-Violence in Peace and War"
More information about the MPlayer-dev-eng
mailing list