[FFmpeg-cvslog] avformat/matroskadec: fix return value

James Almer git at videolan.org
Tue Feb 20 15:30:35 EET 2018


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Feb 20 10:26:21 2018 -0300| [f4f39582e786cdd6cedc3a6abf9a2057dcd8dd7a] | committer: James Almer

avformat/matroskadec: fix return value

err is already an AVERROR.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f4f39582e786cdd6cedc3a6abf9a2057dcd8dd7a
---

 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);



More information about the ffmpeg-cvslog mailing list