You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
Merge commit '7486418683bd2477772e03aab573cf846c12fb0d'
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
@@ -1474,6 +1474,16 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||||||
|
|
||||||
if (!avctx->rc_initial_buffer_occupancy)
|
if (!avctx->rc_initial_buffer_occupancy)
|
||||||
avctx->rc_initial_buffer_occupancy = avctx->rc_buffer_size * 3 / 4;
|
avctx->rc_initial_buffer_occupancy = avctx->rc_buffer_size * 3 / 4;
|
||||||
|
|
||||||
|
if (avctx->ticks_per_frame &&
|
||||||
|
avctx->ticks_per_frame > INT_MAX / avctx->time_base.num) {
|
||||||
|
av_log(avctx, AV_LOG_ERROR,
|
||||||
|
"ticks_per_frame %d too large for the timebase %d/%d.",
|
||||||
|
avctx->ticks_per_frame,
|
||||||
|
avctx->time_base.num,
|
||||||
|
avctx->time_base.den);
|
||||||
|
goto free_and_end;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
avctx->pts_correction_num_faulty_pts =
|
avctx->pts_correction_num_faulty_pts =
|
||||||
|
Reference in New Issue
Block a user