From f4f39582e786cdd6cedc3a6abf9a2057dcd8dd7a Mon Sep 17 00:00:00 2001 From: James Almer Date: Tue, 20 Feb 2018 10:26:21 -0300 Subject: [PATCH] avformat/matroskadec: fix return value err is already an AVERROR. Signed-off-by: James Almer --- libavformat/matroskadec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);