[FFmpeg-devel] [PATCH] IFF demuxer and 8SVX decoder

Vitor Sessak vitor1001
Sun Mar 30 21:17:50 CEST 2008


Jai Menon wrote:
> On Sunday 30 March 2008 17:09:52 Michael Niedermayer wrote:
>> On Sun, Mar 30, 2008 at 08:41:00PM +0000, Jai Menon wrote:
>>> On Sunday 30 March 2008 15:02:05 Michael Niedermayer wrote:
>>>> On Sun, Mar 30, 2008 at 07:05:39PM +0000, Jai Menon wrote:
>>>> [...]
>>>>
>>>>> +static int iff_read_packet(AVFormatContext *s,
>>>>> +                           AVPacket *pkt)
>>>>> +{
>>>>> +    IffDemuxContext *iff = s->priv_data;
>>>>> +    ByteIOContext *pb = s->pb;
>>>>> +    int ret;
>>>>> +
>>>>> +    if(iff->sent_bytes == 0)
>>>>> +        pkt->flags |= PKT_FLAG_KEY;
>>>>> +
>>>>> +    if(iff->sent_bytes > iff->body_size)
>>>>> +        return AVERROR(EIO);
>>>>> +    ret = av_get_packet(pb, pkt, PACKET_SIZE);
>>>> Flags will be 0 here, even for the first packet.
>>> fixed....sorry very silly mistake/too much guinness :-)
>> looks ok
> 
> thanks.....so can somebody commit it then.....day 7 ends in about 2 hrs for 
> me ;-)

Done, but please send a patch to update the documentation and changelog.

-Vitor




More information about the ffmpeg-devel mailing list