Commit 6d2892c9 authored by Clément Bœsch's avatar Clément Bœsch

lavf/assdec: return appropriate error code instead of -1.

parent 069c8975
......@@ -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;
......
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