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

Michael Niedermayer michaelni
Sun Mar 30 19:09:52 CEST 2008


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080330/59b1f95a/attachment.pgp>



More information about the ffmpeg-devel mailing list