mirror of https://git.ffmpeg.org/ffmpeg.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 <stefano.sabatini-lala@poste.it>
This commit is contained in:
parent
8772156be0
commit
50f43fb0e2
|
@ -618,7 +618,7 @@ static int mkv_write_tracks(AVFormatContext *s)
|
||||||
put_ebml_uint(pb, MATROSKA_ID_TRACKTYPE, MATROSKA_TRACK_TYPE_SUBTITLE);
|
put_ebml_uint(pb, MATROSKA_ID_TRACKTYPE, MATROSKA_TRACK_TYPE_SUBTITLE);
|
||||||
if (!native_id) {
|
if (!native_id) {
|
||||||
av_log(s, AV_LOG_ERROR, "Subtitle codec %d is not supported.\n", codec->codec_id);
|
av_log(s, AV_LOG_ERROR, "Subtitle codec %d is not supported.\n", codec->codec_id);
|
||||||
return AVERROR_NOTSUPP;
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue