mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavf/matroskaenc: return an error for unsupported types.
This commit is contained in:
parent
d608a27d9e
commit
fa245e432b
@ -705,7 +705,7 @@ static int mkv_write_tracks(AVFormatContext *s)
|
||||
break;
|
||||
default:
|
||||
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);
|
||||
if (ret < 0) return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user