lavc: debug dump spot for converted AVFrame

+ change first parameter of serialize callback to (const void *)
+ renamed "lavd-uncompressed" to "lavd-avframe" - uncompressed is vague
  since there are multiple forms of uncompressed - avframe, ultragrid
  pixfmt...
This commit is contained in:
Martin Pulec
2021-11-26 09:37:24 +01:00
parent e04b6986a9
commit a22ff7a5f1
6 changed files with 26 additions and 15 deletions

View File

@@ -304,7 +304,7 @@ void Logger::preinit(bool skip_repeated, int show_timestamps)
}
#ifdef DEBUG
void debug_file_dump(const char *key, void (*serialize)(void *data, FILE *), void *data) {
void debug_file_dump(const char *key, void (*serialize)(const void *data, FILE *), void *data) {
const char *dump_file_val = get_commandline_param("debug-dump");
static thread_local unordered_map<string, int> skip_map;
if (dump_file_val == nullptr) {