You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avconv: do not abort immediately if initializing hwaccel fails
exit_program() will try to free the decoders, which is not a good idea from within get_format(). Return an error instead.
This commit is contained in:
2
avconv.c
2
avconv.c
@@ -1507,7 +1507,7 @@ static enum AVPixelFormat get_format(AVCodecContext *s, const enum AVPixelFormat
|
|||||||
"%s hwaccel requested for input stream #%d:%d, "
|
"%s hwaccel requested for input stream #%d:%d, "
|
||||||
"but cannot be initialized.\n", hwaccel->name,
|
"but cannot be initialized.\n", hwaccel->name,
|
||||||
ist->file_index, ist->st->index);
|
ist->file_index, ist->st->index);
|
||||||
exit_program(1);
|
return AV_PIX_FMT_NONE;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user