mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 08:12:44 +00:00
lavf/assdec: return appropriate error code instead of -1.
This commit is contained in:
parent
069c897549
commit
6d2892c9f5
@ -88,7 +88,7 @@ static int ass_read_header(AVFormatContext *s)
|
||||
|
||||
st = avformat_new_stream(s, NULL);
|
||||
if (!st)
|
||||
return -1;
|
||||
return AVERROR(ENOMEM);
|
||||
avpriv_set_pts_info(st, 64, 1, 100);
|
||||
st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
|
||||
st->codec->codec_id= AV_CODEC_ID_SSA;
|
||||
|
Loading…
Reference in New Issue
Block a user