video mixer: check for invalid format

Change-Id: I963858322e8cb2f4035238acc6b3c542b2a0a06e
This commit is contained in:
Adrien Béraud
2019-11-04 16:24:15 -05:00
parent e0ab97f811
commit 8d06c9de37

View File

@ -179,7 +179,7 @@ void
VideoMixer::render_frame(VideoFrame& output, const VideoFrame& input,
const std::unique_ptr<VideoMixerSource>& source, int index)
{
if (!width_ or !height_ or !input.pointer())
if (!width_ or !height_ or !input.pointer() or input.pointer()->format == -1)
return;
#ifdef RING_ACCEL