0
0
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:
jp9000 2016-04-19 07:22:04 -07:00
parent 1a38d779c9
commit caa5723c21

View File

@ -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;