summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/assenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/assenc.c b/libavformat/assenc.c
index 2afeef7113..24833d2929 100644
--- a/libavformat/assenc.c
+++ b/libavformat/assenc.c
@@ -47,7 +47,7 @@ static int write_header(AVFormatContext *s)
if (s->nb_streams != 1 || (avctx->codec_id != AV_CODEC_ID_SSA &&
avctx->codec_id != AV_CODEC_ID_ASS)) {
av_log(s, AV_LOG_ERROR, "Exactly one ASS/SSA stream is needed.\n");
- return -1;
+ return AVERROR(EINVAL);
}
ass->write_ts = avctx->codec_id == AV_CODEC_ID_ASS;
avpriv_set_pts_info(s->streams[0], 64, 1, 100);