ffmpeg: Fix null pointer dereference in do_video_out()
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 19 Apr 2015 20:42:54 +0000 (22:42 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 19 Apr 2015 21:44:19 +0000 (23:44 +0200)
Fixes: CID1295087

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index 8d2cbe3..1ba0a42 100644 (file)
--- 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