mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
libobs: Don't parse sei if sei callback returns 0/NULL
This commit is contained in:
parent
1a38d779c9
commit
caa5723c21
@ -731,7 +731,7 @@ static void send_first_video_packet(struct obs_encoder *encoder,
|
||||
|
||||
da_init(data);
|
||||
|
||||
if (!get_sei(encoder, &sei, &size)) {
|
||||
if (!get_sei(encoder, &sei, &size) || !sei || !size) {
|
||||
cb->new_packet(cb->param, packet);
|
||||
cb->sent_first_packet = true;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user