summaryrefslogtreecommitdiff
path: root/libavformat/matroskaenc.c
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2016-10-27 01:09:23 -0500
committerRodger Combs <rodger.combs@gmail.com>2016-11-02 01:16:26 -0500
commitbe28ce210d5674603838e67509fc597f30c1bb1c (patch)
tree4d9e5ee7cef51b2d7b46719fb7730e63a84bcaef /libavformat/matroskaenc.c
parent8e6478b723affe4d44f94d34b98e0c47f6a0b411 (diff)
lavf/matroskaenc: fix uninitialized read
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r--libavformat/matroskaenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 57041193a1..56174fff9a 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -1547,7 +1547,7 @@ static int mkv_write_attachments(AVFormatContext *s)
mkv->attachments = av_mallocz(sizeof(*mkv->attachments));
if (!mkv->attachments)
- return ret;
+ return AVERROR(ENOMEM);
av_lfg_init(&c, av_get_random_seed());