On 13/05/16 20:00, Anton Khirnov wrote:
> Quoting Luca Barbato (2016-05-13 19:15:09)
>> ---
>> libavcodec/utils.c | 8 ++++++++
>> 1 file changed, 8 insertions(+)
>>
>> diff --git a/libavcodec/utils.c b/libavcodec/utils.c
>> index d42885d..b4fca03 100644
>> --- a/libavcodec/utils.c
>> +++ b/libavcodec/utils.c
>> @@ -1063,6 +1063,14 @@ FF_ENABLE_DEPRECATION_WARNINGS
>> if (!avctx->rc_initial_buffer_occupancy)
>> avctx->rc_initial_buffer_occupancy = avctx->rc_buffer_size * 3
>> / 4;
>>
>> + if (avctx->time_base.num <= 0 ||
>> + avctx->time_base.den <= 0) {
>> + av_log(avctx, AV_LOG_ERROR, "Impossible time base %d/%d.",
>> + avctx->time_base.num,
>> + avctx->time_base.den);
>> + goto free_and_end;
>> + }
>> +
>> if (avctx->ticks_per_frame &&
>> avctx->ticks_per_frame > INT_MAX / avctx->time_base.num) {
>> av_log(avctx, AV_LOG_ERROR,
>
> Stab
>
> I sent a pretty much identical patch a couple days ago. And you approved
> it.
>
counterstab, blame koda, he asked me to resend this patch (that is from
like 6 months ago) =P
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel