X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fsrtdec.c;h=9cd393ef7f83fc60599a57c748ee6758c66a596b;hb=3c033d00f5990e48b14f962d33c362f76695fb07;hp=481f4a6bb03f172b850a75f96481ae440e56c3e3;hpb=3630a075132a8d059b16f92a291e523c1bc7ebc9;p=ffmpeg diff --git a/libavformat/srtdec.c b/libavformat/srtdec.c index 481f4a6bb03..9cd393ef7f8 100644 --- a/libavformat/srtdec.c +++ b/libavformat/srtdec.c @@ -44,7 +44,7 @@ static int srt_read_header(AVFormatContext *s) { AVStream *st = avformat_new_stream(s, NULL); if (!st) - return -1; + return AVERROR(ENOMEM); avpriv_set_pts_info(st, 64, 1, 1000); st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE; st->codec->codec_id = CODEC_ID_SRT;