[FFmpeg-devel] camera files (no name)
nicolas martin
elvadrias
Sun Feb 8 16:04:46 CET 2009
Le 09-02-07 ? 21:56, Michael Niedermayer a ?crit :
> 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);
> }
Fixed.
>
>
>
> [...]
> --
> 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
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_ncdec.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090208/e52e7ef1/attachment.txt>
-------------- next part --------------
More information about the ffmpeg-devel
mailing list