[FFmpeg-devel] [PATCH] non-interleaved AVI read packet fix

Maksym Veremeyenko verem
Thu Sep 3 17:45:51 CEST 2009


Michael Niedermayer ???????(??):
> On Thu, Sep 03, 2009 at 04:58:07PM +0300, Maksym Veremeyenko wrote:
>> Michael Niedermayer ???????(??):
>>> On Thu, Sep 03, 2009 at 08:27:07AM +0300, Maksym Veremeyenko wrote:
>>>> Michael Niedermayer ???????(??):
>>>>> On Wed, Sep 02, 2009 at 09:22:42AM +0300, Maksym Veremeyenko wrote:
[...]
> the  st->nb_index_entries check has to be factored out first or this can
> crash i think

Some code bellow already has a:

[...]
             if(ts < best_ts && st->nb_index_entries){
                 best_ts= ts;
                 best_st= st;
                 best_stream_index= i;
             }
[...]

so may be it has a sense to simplify this condition too (like in 
attached patch) if checking for st->nb_index_entries will be first?

-- 
________________________________________
Maksym Veremeyenko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avidec_non_interleaved_read_packet_fix_v7.patch
Type: text/x-patch
Size: 1051 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090903/8553b7c8/attachment.bin>



More information about the ffmpeg-devel mailing list