[FFmpeg-devel] camera files (no name)

Michael Niedermayer michaelni
Sun Feb 8 03:56:36 CET 2009


On Sat, Feb 07, 2009 at 04:40:53PM -0500, nicolas martin wrote:
[...]
> +static int nc_read_packet(AVFormatContext *s, AVPacket *pkt)
> +{
> +    int size;
> +
> +    uint32_t state=-1;

> +    while (!url_feof(s->pb) && state != NC_VIDEO_FLAG)
> +        state = (state<<8) + get_byte(s->pb);
> +
> +    if (url_feof(s->pb))
> +        return AVERROR(EIO);


while (state != NC_VIDEO_FLAG){
    if (url_feof(s->pb))
        return AVERROR(EIO);
    state = (state<<8) + get_byte(s->pb);
}


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

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- 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/20090208/bebb3eff/attachment.pgp>



More information about the ffmpeg-devel mailing list