[FFmpeg-cvslog] lavf/matroskaenc: return an error for unsupported types.
Nicolas George
git at videolan.org
Sat May 4 17:11:28 CEST 2013
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Mon Apr 29 20:45:22 2013 +0200| [fa245e432bdc3b28081d8fcaa90dced6c6fbf566] | committer: Nicolas George
lavf/matroskaenc: return an error for unsupported types.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fa245e432bdc3b28081d8fcaa90dced6c6fbf566
---
libavformat/matroskaenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index da34ea7..371b9d0 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;
More information about the ffmpeg-cvslog
mailing list