From 93db2708d3b0bcc1f1d87d23ae8adbedd8ea6660 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 19 Apr 2015 22:42:54 +0200 Subject: ffmpeg: Fix null pointer dereference in do_video_out() Fixes: CID1295087 Signed-off-by: Michael Niedermayer --- ffmpeg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index 8d2cbe3cef..1ba0a42058 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1031,6 +1031,9 @@ static void do_video_out(AVFormatContext *s, } else in_picture = next_picture; + if (!in_picture) + return; + in_picture->pts = ost->sync_opts; #if 1 -- cgit v1.2.3