diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-21 11:24:34 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-22 10:21:21 +0200 |
commit | 50f43fb0e26df6f090e88f4e09257ef5e10be0fb (patch) | |
tree | ee224e71b23fcdb9689c58a74eb0f0115fad3cbc | |
parent | 8772156be0725fd20d948a855616fe155fafdc09 (diff) | |
download | ffmpeg-50f43fb0e26df6f090e88f4e09257ef5e10be0fb.tar.gz |
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 <stefano.sabatini-lala@poste.it>
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 5ce2a541da..5e4552a09c 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: |