[FFmpeg-devel] [PATCH] avformat: export probe score

Paul B Mahol onemda at gmail.com
Wed Aug 28 00:01:57 CEST 2013


On 8/27/13, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Tue, Aug 27, 2013 at 09:45:02PM +0000, Paul B Mahol wrote:
>> On 8/27/13, Michael Niedermayer <michaelni at gmx.at> wrote:
>> > On Fri, Aug 09, 2013 at 05:10:09AM +0000, Paul B Mahol wrote:
>> >> On 8/9/13, Michael Niedermayer <michaelni at gmx.at> wrote:
>> >> > On Thu, Aug 08, 2013 at 09:44:44PM +0000, Paul B Mahol wrote:
>> >> >> On 8/8/13, Michael Niedermayer <michaelni at gmx.at> wrote:
>> >> >> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
>> >> >> > ---
>> >> >> >  libavformat/avformat.h      |   17 +++++++++++++++--
>> >> >> >  libavformat/options_table.h |    1 +
>> >> >> >  libavformat/utils.c         |   18 ++++++++++++++----
>> >> >> >  3 files changed, 30 insertions(+), 6 deletions(-)
>> >> >> >
>> >> >> > diff --git a/libavformat/avformat.h b/libavformat/avformat.h
>> >> >> > index d5f8a29..6afdcf5 100644
>> >> >> > --- a/libavformat/avformat.h
>> >> >> > +++ b/libavformat/avformat.h
>> >> >> > @@ -1237,6 +1237,13 @@ typedef struct AVFormatContext {
>> >> >> >       */
>> >> >> >      int flush_packets;
>> >> >> >
>> >> >> > +    /**
>> >> >> > +     * format probing score
>> >> >> > +     * - encoding: unused
>> >> >> > +     * - decoding: set by avformat, read by user via AVOPtions
>> >> >> > (NO
>> >> >> > direct
>> >> >> > access)
>> >> >> > +     */
>> >> >> > +    int probe_score;
>> >> >> > +
>> >> >>
>> >> >> Should't this above be bellow?
>> >> >
>> >> > it is intended to be public API, so i would say no
>> >>
>> >> But than it would break with fork, wouldn't it?
>> >
>> > it should not break it, the fields afterwards are internal to lavf
>> > also there are already ffmpeg specific fields there
>>
>> Following yet another breaking of consistency.
>
> please elaborate

You are adding extra inconsistency by adding '(NO direct access)'.

What that means? Is it same as text bellow?
If it is internal, why all internal stuff can not be documented
as such in clear and consistent way.

>
>
>>
>> If something is internal it should be documented as such.
>
> absolutely, yes
>
>
>>
>> But looks like some developers like to play games with users.
>
> please elaborate

See above.

>
> [...]
>
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> Frequently ignored answer#1 FFmpeg bugs should be sent to our bugtracker.
> User
> questions about the command line tools should be sent to the ffmpeg-user
> ML.
> And questions about how to use libav* should be sent to the libav-user ML.
>


More information about the ffmpeg-devel mailing list