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

Michael Niedermayer michaelni
Sun Mar 30 17:02:05 CEST 2008


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.


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

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- 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/b1beb444/attachment.pgp>



More information about the ffmpeg-devel mailing list