On Thu, Mar 27, 2008 at 10:28:51PM +0100, Bartlomiej Wolowiec wrote:
> 2008/3/26, Michael Niedermayer <[EMAIL PROTECTED]>:
> >  I do not like generic code full of
> >  If(codecA)
> >  else
> >
> >  The sync function should return if it has a complete frame or if (maybe) 
> > not.
> >  That is
> >
> >  flags= FRAME_START | FRAME_END;
> >
> >
> >  You do this in stream_type but this name is totally wrong this is not a
> >  stream_type. It is not even constant for a stream. NEVER even think of 
> > using
> >  a name from the a52* spec, the people who wrote it are idiots.
> >  Its a flag indicating the start/end of a frame. And IMHO it should be
> >  returned more directly than as a context variable but thats rather minor
> >  the name is a major issue. It totally confused me until looked it up in the
> >  spec.
> >
> >  Code should be understandable without looking things up in the specs.
> >
> >  Also the "stream_type" has the wrong type (should be enum) and the types 
> > used
> >  in AAC-AC3 code must be generic types not *AC3 specific types in headers 
> > which
> >  arent #included.
> 
> Ok, what do you think about such a plan:
> 
> 1.
> enum AACAC3FrameFlag{
>     FRAME_COMPLETE,
>     FRAME_START,
>     FRAME_CONTINUATION
>     };
> removal of stream_type z AACAC3ParseContext, change of int
> (*sync)(struct AACAC3ParseContext *hdr_info)
> to
> int (*sync)(struct AACAC3ParseContext *hdr_info, AACAC3FrameFlag *flag)
> 
> 2.change of stream_type to frame_type
> 
> 3.change of ff_aac_ac3_parse to make it react correctly to result
> returned in flag.

ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes

Attachment: signature.asc
Description: Digital signature

_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to