You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavf/matroskaenc: return an error for unsupported types.
This commit is contained in:
@@ -705,7 +705,7 @@ static int mkv_write_tracks(AVFormatContext *s)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
av_log(s, AV_LOG_ERROR, "Only audio, video, and subtitles are supported for Matroska.\n");
|
av_log(s, AV_LOG_ERROR, "Only audio, video, and subtitles are supported for Matroska.\n");
|
||||||
break;
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
ret = mkv_write_codecprivate(s, pb, codec, native_id, qt_id);
|
ret = mkv_write_codecprivate(s, pb, codec, native_id, qt_id);
|
||||||
if (ret < 0) return ret;
|
if (ret < 0) return ret;
|
||||||
|
Reference in New Issue
Block a user