Since fb548fba04193a418f118d21b261ba05db4f480b, this return -1 is in a function returning enum AVPixelFormat whose caller checks for AV_PIX_FMT_NONE for failure.
Unified · Split
| @@ -453,7 +453,7 @@ static enum AVPixelFormat get_sw_pixel_format(void *logctx, · 452 unmodified lines | ||
| 453 | 453 | else { |
| 454 | 454 | av_log(logctx, AV_LOG_ERROR, |
| 455 | 455 | "Unknown AV1 profile %d.\n", seq->seq_profile); |
| 456 | − return -1; | |
| 456 | + return AV_PIX_FMT_NONE; | |
| 457 | 457 | } |
| 458 | 458 | |
| 459 | 459 | if (!seq->color_config.mono_chrome) { |