[FFmpeg-devel] [PATCH] HAM6/HAM8 support for IFF demuxer/decoder

Ronald S. Bultje rsbultje at gmail.com
Thu Apr 21 18:17:46 CEST 2011


Hi,

On Thu, Apr 21, 2011 at 12:13 PM, Stefano Sabatini
<stefano.sabatini-lala at poste.it> wrote:
> On date Wednesday 2011-04-20 13:56:56 +0200, Sebastian Vater encoded:
>> +        if (!st->codec->extradata) {
>> +            st->codec->extradata_size = IFF_EXTRA_VIDEO_SIZE;
>> +            st->codec->extradata      = av_malloc(IFF_EXTRA_VIDEO_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);
>> +            if (!st->codec->extradata)
>> +                return AVERROR(ENOMEM);
>> +        }
>> +        buf = st->codec->extradata;
>> +        bytestream_put_be16(&buf, IFF_EXTRA_VIDEO_SIZE);
>> +        bytestream_put_byte(&buf, iff->compression);
>> +        bytestream_put_byte(&buf, iff->bpp);
>> +        bytestream_put_byte(&buf, iff->ham);
>> +        bytestream_put_byte(&buf, iff->flags);
>> +        bytestream_put_be16(&buf, iff->transparency);
>> +        bytestream_put_byte(&buf, iff->masking);
>
> I confess I have not much experience with this way of passing data
> from the demuxer to the decoder, and I remember it was already
> discussed, but isn't this ABI fragile, isn't this creating a lavc/lavf
> coupling?

Yeah, this is what Kostya added the AVPacket.side_data for.

Ronald


More information about the ffmpeg-devel mailing list