Commit fa245e43 authored by Nicolas George's avatar Nicolas George

lavf/matroskaenc: return an error for unsupported types.

parent d608a27d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment