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>
pull/2/head
Stefano Sabatini 14 years ago
parent 8772156be0
commit 50f43fb0e2
  1. 2
      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:

Loading…
Cancel
Save