Skip to content
Snippets Groups Projects
Commit 8d06c9de authored by Adrien Béraud's avatar Adrien Béraud
Browse files

video mixer: check for invalid format

Change-Id: I963858322e8cb2f4035238acc6b3c542b2a0a06e
parent e0ab97f8
No related branches found
No related tags found
No related merge requests found
...@@ -179,7 +179,7 @@ void ...@@ -179,7 +179,7 @@ void
VideoMixer::render_frame(VideoFrame& output, const VideoFrame& input, VideoMixer::render_frame(VideoFrame& output, const VideoFrame& input,
const std::unique_ptr<VideoMixerSource>& source, int index) 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; return;
#ifdef RING_ACCEL #ifdef RING_ACCEL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment