On 12/06/2012 12:27 PM, Janne Grunau wrote:
> On 2012-11-26 00:04:00 +0100, Janne Grunau wrote:
>> Fixes an assert in fuzzed sample sample.mp4_s265930.
>> ---
>>  libavformat/mov.c | 5 +++--
>>  1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/libavformat/mov.c b/libavformat/mov.c
>> index 8dbcc41..149b48e 100644
>> --- a/libavformat/mov.c
>> +++ b/libavformat/mov.c
>> @@ -2073,8 +2073,9 @@ static int mov_read_trak(MOVContext *c, AVIOContext 
>> *pb, MOVAtom atom)
>>                                               ((double)st->codec->width * 
>> sc->height), INT_MAX);
>>          }
>>  
>> -        av_reduce(&st->avg_frame_rate.num, &st->avg_frame_rate.den,
>> -                  sc->time_scale*st->nb_frames, st->duration, INT_MAX);
>> +        if (st->duration != AV_NOPTS_VALUE)
>> +            av_reduce(&st->avg_frame_rate.num, &st->avg_frame_rate.den,
>> +                      sc->time_scale*st->nb_frames, st->duration, INT_MAX);
>>  
>>  #if FF_API_R_FRAME_RATE
>>          if (sc->stts_count == 1 || (sc->stts_count == 2 && 
>> sc->stts_data[1].count == 1))
> 
> ping

LGTM

-Justin

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to