From: Stefano Sabatini Date: Thu, 21 Apr 2011 09:24:34 +0000 (+0200) Subject: matroskaenc: replace AVERROR_NOTSUPP with AVERROR(EINVAL) X-Git-Tag: n0.8~818 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=50f43fb0e26df6f090e88f4e09257ef5e10be0fb;p=coroid%2Fffmpeg_saccubus.git matroskaenc: replace AVERROR_NOTSUPP with AVERROR(EINVAL) AVERROR_NOTSUPP has been dropped with the major bump. Since the signalled error denotes a configuration problem, AVERROR(EINVAL) looks an adequate replacement. Signed-off-by: Stefano Sabatini --- diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 5ce2a541d..5e4552a09 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -618,7 +618,7 @@ static int mkv_write_tracks(AVFormatContext *s) put_ebml_uint(pb, MATROSKA_ID_TRACKTYPE, MATROSKA_TRACK_TYPE_SUBTITLE); if (!native_id) { av_log(s, AV_LOG_ERROR, "Subtitle codec %d is not supported.\n", codec->codec_id); - return AVERROR_NOTSUPP; + return AVERROR(EINVAL); } break; default: