mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 20:40:27 +00:00
vcomp/lavc: do not assert on wrong bitrate
rather return (the error message is already printed by unit_evaluate)
This commit is contained in:
@@ -536,7 +536,9 @@ parse_fmt(struct state_video_compress_libav *s, char *fmt) noexcept(false)
|
||||
} else if (IS_KEY_PREFIX(item, "bitrate")) {
|
||||
s->params.requested_bitrate =
|
||||
unit_evaluate(strchr(item, '=') + 1, nullptr);
|
||||
assert(s->params.requested_bitrate >= 0);
|
||||
if (s->params.requested_bitrate < 0) {
|
||||
return -1;
|
||||
}
|
||||
} else if(strncasecmp("bpp=", item, strlen("bpp=")) == 0) {
|
||||
char *bpp_str = item + strlen("bpp=");
|
||||
s->params.requested_bpp =
|
||||
|
||||
Reference in New Issue
Block a user