We don't want to accidentally set those options and timeout in pause state. Remove video-osd as there is no reason to set it in fact.
Unified · Split
| @@ -63,20 +63,21 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) · 62 unmodified lines | ||
| 63 | 63 | #if MPV_RUN |
| 64 | 64 | check_error(mpv_set_option_string(ctx, "vo", "null")); |
| 65 | 65 | check_error(mpv_set_option_string(ctx, "ao", "null")); |
| 66 | − check_error(mpv_set_option_string(ctx, "ao-null-untimed", "yes")); | |
| 67 | − check_error(mpv_set_option_string(ctx, "untimed", "yes")); | |
| 68 | − check_error(mpv_set_option_string(ctx, "video-osd", "no")); | |
| 69 | 66 | |
| 70 | 67 | check_error(mpv_initialize(ctx)); |
| 71 | 68 | #endif |
| 72 | 69 | |
| 73 | −if (MPV_FORMAT == MPV_FORMAT_STRING) { | |
| 74 | − mpv_set_property_string(ctx, name, (void *)data); | |
| 75 | −} else { | |
| 76 | − mpv_set_property(ctx, name, MPV_FORMAT, (void *)data); | |
| 77 | −} | |
| 70 | + if (MPV_FORMAT == MPV_FORMAT_STRING) { | |
| 71 | + mpv_set_property_string(ctx, name, (void *)data); | |
| 72 | + } else { | |
| 73 | + mpv_set_property(ctx, name, MPV_FORMAT, (void *)data); | |
| 74 | + } | |
| 78 | 75 | |
| 79 | 76 | #if MPV_RUN |
| 77 | + check_error(mpv_set_option_string(ctx, "ao-null-untimed", "yes")); | |
| 78 | + check_error(mpv_set_option_string(ctx, "untimed", "yes")); | |
| 79 | + check_error(mpv_set_option_string(ctx, "pause", "no")); | |
| 80 | + | |
| 80 | 81 | check_error(mpv_set_option_string(ctx, "audio-files", "av://lavfi:sine=d=0.1")); |
| 81 | 82 | const char *cmd[] = {"loadfile", "av://lavfi:yuvtestsrc=d=0.1", NULL}; |
| 82 | 83 | check_error(mpv_command(ctx, cmd)); |