Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2013-04-29 22:45:22 +0400
committerNicolas George <nicolas.george@normalesup.org>2013-05-04 16:12:57 +0400
commitfa245e432bdc3b28081d8fcaa90dced6c6fbf566 (patch)
treef02513bcde38f33c2206436bb2859a0cb9baa661
parentd608a27d9e28d24ab56acc4ea6bfb13b2802035c (diff)
lavf/matroskaenc: return an error for unsupported types.
-rw-r--r--libavformat/matroskaenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index da34ea7677..371b9d0bf2 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -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;