On 10/12/2021 3:43 PM, Michael Niedermayer wrote:
> this should be using av_rescale() i think
That seems unrelated to this patch - but I can send a second patch
that does that, if you want.
Is your intent something like this;
if (sc->data_size > INT64_MAX / 8) {
av_log(s, AV_LOG_WARNING, "Overflow during bit rate calculation
%"PRId64" * 8 > INT64_MAX\n",
sc->data_size);
if (s->error_recognition & AV_EF_EXPLODE)
return AVERROR_INVALIDDATA;
} else
st->codecpar->bit_rate = av_rescale(sc->data_size * 8, c->time_scale,
st->duration);
- Derek
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".