mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
avformat/matroskadec: fix return value
err is already an AVERROR. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user