Prevent 'dereference after NULL check'

This commit is contained in:
twinaphex 2016-07-12 23:14:51 +02:00
parent d4051fcc27
commit 9bf63a7809

View File

@ -1252,7 +1252,7 @@ static void decode_thread(void *data)
decoded_size = frame_size + sizeof(pts);
slock_lock(fifo_lock);
while (!decode_thread_dead
while (!decode_thread_dead && (video_decode_fifo != NULL)
&& fifo_write_avail(video_decode_fifo) < decoded_size)
{
if (!main_sleeping)