diff options
author | Clément Bœsch <u@pkh.me> | 2014-09-20 21:39:57 +0200 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2014-09-21 18:50:16 +0200 |
commit | e60770679b5605e5af556d48aabd3789f63d2c96 (patch) | |
tree | 278c382b8e35ac9a6af7d555fdd22d6550bec24e | |
parent | ce8dc93aefb4bb76507c0b6107f513c773ad25f8 (diff) | |
download | ffmpeg-e60770679b5605e5af556d48aabd3789f63d2c96.tar.gz |
avformat/assenc: return correct error code
-rw-r--r-- | libavformat/assenc.c | 2 |
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); |