[FFmpeg-devel] [PATCH] stop av_find_stream_info after reading a certain amount of frames

Baptiste Coudurier baptiste.coudurier
Thu Feb 26 08:39:11 CET 2009


Marc Mason wrote:
> Baptiste Coudurier wrote:
> 
>> Index: libavformat/utils.c
>> ===================================================================
>> --- libavformat/utils.c	(revision 17505)
>> +++ libavformat/utils.c	(working copy)
>> @@ -2019,7 +2019,7 @@
>>  
>>      count = 0;
>>      read_size = 0;
>> -    for(;;) {
>> +    for(; count < 200; ) {
> 
> Just wondering. Why not "while (count < 200)" ?

Yes, why not.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
FFmpeg maintainer                                  http://www.ffmpeg.org




More information about the ffmpeg-devel mailing list