Commit f4f39582 authored by James Almer's avatar James Almer

avformat/matroskadec: fix return value

err is already an AVERROR.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 88eb368f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment