mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user