[FFmpeg-devel] [PATCH] Electronic Arts MAD Decoder

Måns Rullgård mans
Wed Jun 10 15:03:52 CEST 2009


Michael Niedermayer <michaelni at gmx.at> writes:

> On Wed, Jun 10, 2009 at 01:37:13PM +0100, M?ns Rullg?rd wrote:
>> Diego Biurrun <diego at biurrun.de> writes:
>> 
>> > On Wed, Jun 10, 2009 at 08:52:58PM +1000, Peter Ross wrote:
>> >> 
>> >> Patch updated.
>> >> 
>> >> --- libavcodec/eamad.c	(revision 0)
>> >> +++ libavcodec/eamad.c	(revision 0)
>> >> @@ -0,0 +1,323 @@
>> >> +
>> >> +static av_cold int mad_decode_init(AVCodecContext *avctx)
>> >
>> > All those mad_ prefixes for static functions are pointless.
>> 
>> I disagree.  When using a debugger, it helps if functions have unique
>> names.  Setting a breakpoint on, or merely seeing in a call stack, a
>> name like "decode" is ambiguous at best.  Unique names also help with
>
> debuggers should display the file name too

You've obviously never used a debugger if you don't recognise the
usefulness of unique symbol names.

>> editors capable of jumping to a named symbol (emacs, vi, and many
>> others).
>
> if the compiler can figure out which function is meant, so should an
> editor

Don't be stupid.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list