summaryrefslogtreecommitdiffstats
path: root/libvo/vo_jpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_jpeg.c')
-rw-r--r--libvo/vo_jpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libvo/vo_jpeg.c b/libvo/vo_jpeg.c
index 1e3a92f2e6..65e1becaac 100644
--- a/libvo/vo_jpeg.c
+++ b/libvo/vo_jpeg.c
@@ -493,6 +493,7 @@ static uint32_t preinit(const char *arg)
/* If jpeg_outdir is not set by an option, resort to default of "." */
if (!jpeg_outdir) {
jpeg_outdir = strdup(".");
+ if (!jpeg_outdir) jpeg_malloc_failed();
}
mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name,