[FFmpeg-devel] [PATCH] Add to AVCodec a long_name field

Stefano Sabatini stefano.sabatini-lala
Tue Apr 8 16:02:48 CEST 2008


Hi, as discussed in:
http://thread.gmane.org/20080407143527.GA15487 at geppetto

Long names could be setted like this:

AVCodec flv_decoder = {
    "flv",
    CODEC_TYPE_VIDEO,
    CODEC_ID_FLV1,
    sizeof(MpegEncContext),
    ff_h263_decode_init,
    NULL,
    ff_h263_decode_end,
    ff_h263_decode_frame,
    CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1,
    .long_name= "Flash Video"
};

In the case of a not filled field, I think most compilers (I only
tested gcc) should set it to NULL, so it shouldn't be a problem when
reading the field, or maybe we should explicitly set it in each codec
(this would be true also for the other fields too).

Best regards.
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-avcodec-long-name-field-00.patch
Type: text/x-diff
Size: 815 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080408/ec47bbcd/attachment.patch>



More information about the ffmpeg-devel mailing list