avformat/matroskadec: fix return value

err is already an AVERROR.

Signed-off-by: James Almer <jamrial@gmail.com>
pull/279/head
James Almer 7 years ago
parent 88eb368f42
commit f4f39582e7
  1. 2
      libavformat/matroskadec.c

@ -3111,7 +3111,7 @@ static int matroska_parse_webvtt(MatroskaDemuxContext *matroska,
err = av_new_packet(pkt, text_len); err = av_new_packet(pkt, text_len);
if (err < 0) { if (err < 0) {
av_free(pkt); av_free(pkt);
return AVERROR(err); return err;
} }
memcpy(pkt->data, text, text_len); memcpy(pkt->data, text, text_len);

Loading…
Cancel
Save