summaryrefslogtreecommitdiff
path: root/libavformat/matroskadec.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-02-20 10:26:21 -0300
committerJames Almer <jamrial@gmail.com>2018-02-20 10:26:21 -0300
commitf4f39582e786cdd6cedc3a6abf9a2057dcd8dd7a (patch)
tree21a126e9dff6e795ac53be0ee1b2fcbc9d8f088e /libavformat/matroskadec.c
parent88eb368f4210fc2975666f9cb89504b3374094ab (diff)
avformat/matroskadec: fix return value
err is already an AVERROR. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r--libavformat/matroskadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index bf0e47ce3a..2faaf9dfb8 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -3111,7 +3111,7 @@ static int matroska_parse_webvtt(MatroskaDemuxContext *matroska,
err = av_new_packet(pkt, text_len);
if (err < 0) {
av_free(pkt);
- return AVERROR(err);
+ return err;
}
memcpy(pkt->data, text, text_len);