deps/media-playback: Just null the first frame pointer on decode

memset is a little excessive considering we only check the first
pointer.
This commit is contained in:
Lain
2023-05-25 18:34:27 -07:00
parent 40ce466f4d
commit 192d33ce86
+1 -1
View File
@@ -299,7 +299,7 @@ bool mp_media_prepare_frames(mp_media_t *m)
* these pointers to signify they're not valid. (the obsframe
* structure is only used in the media thread, so this isn't a
* threading issue) */
memset(&m->obsframe, 0, sizeof(m->obsframe));
m->obsframe.data[0] = NULL;
if (m->has_video && !mp_decode_frame(&m->v))
return false;