Browse Source

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>
tags/n0.8
Stefano Sabatini 14 years ago
parent
commit
50f43fb0e2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/matroskaenc.c

+ 1
- 1
libavformat/matroskaenc.c View File

@@ -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