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

This commit is contained in:
Clément Bœsch 2012-11-23 22:47:51 +01:00
parent 069c897549
commit 6d2892c9f5
1 changed files with 1 additions and 1 deletions

View File

@ -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;