1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 02:22:19 +00:00

ad_spdif: add an assert for lavf_ctx

To suppress forward null warning.
This commit is contained in:
Kacper Michajłow 2024-06-15 20:00:07 +02:00
parent 3840c98b36
commit 3b3604e162

View File

@ -331,6 +331,7 @@ static void ad_spdif_process(struct mp_filter *da)
if (init_filter(da) < 0)
goto done;
assert(spdif_ctx->avpkt);
assert(spdif_ctx->lavf_ctx);
}
spdif_ctx->out_buffer_len = 0;