Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ffmpeg/encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,8 @@ int process_out(struct input_ctx *ictx, struct output_ctx *octx, AVCodecContext

// Check for runaway encodes where the FPS filter produces too many frames
// Unclear what causes these
if (is_video && frame && ictx->decoded_res && ictx->decoded_res->frames > 0) {
if (ictx->ic && ictx->ic->iformat &&
if (is_video && frame && ictx && ictx->decoded_res && ictx->decoded_res->frames > 0) {
if (ictx->ic && ictx->ic->iformat && ictx->ic->iformat->name &&
!strcmp(ictx->ic->iformat->name, "image2")) {
// Image sequence input can legitimately expand frame counts.
goto after_runaway_check;
Expand Down
Loading