ref: dff0a08cd3ad1c1673b290bfa90ec32edd3ddc54
parent: 3a77c57b0ca06c613fea96afe63d2870f513e97f
author: James Almer <[email protected]>
date: Sat Aug 10 11:50:31 EDT 2019
dav1dplay: abort if no input filename is provided
--- a/examples/dav1dplay.c
+++ b/examples/dav1dplay.c
@@ -712,6 +712,8 @@
if (optind < argc)
dp_settings_print_usage(argv[0],
"Extra/unused arguments found, e.g. '%s'\n", argv[optind]);
+ if (!settings->inputfile)
+ dp_settings_print_usage(argv[0], "Input file (-i/--input) is required");
}
/**
@@ -776,6 +778,7 @@
}
dav1d_default_settings(&rd_ctx->lib_settings);
+ memset(&rd_ctx->settings, 0, sizeof(rd_ctx->settings));
rd_ctx->last_pts = 0;
rd_ctx->last_ticks = 0;