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

Jai Menon realityman
Sun Mar 30 22:41:00 CEST 2008


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 :-)

Regards
Jai Menon
<realityman at gmx.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iff_demuxer.patch
Type: text/x-diff
Size: 6508 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080330/1ea938d5/attachment.patch>



More information about the ffmpeg-devel mailing list