From d90ca974921b61cdc563abe5ec1c4696ab1e34cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 15 Oct 2008 15:40:27 +0000 Subject: [PATCH] * Add some more tracing. * Add the case where H.264 info needs to be extracted. (Had this laying on my hard drive for a while, hope you have not worked on it again, David...) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28142 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/media/plugins/matroska/matroska_codecs.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/add-ons/media/plugins/matroska/matroska_codecs.cpp b/src/add-ons/media/plugins/matroska/matroska_codecs.cpp index 34a80d22de..ee47f14c89 100644 --- a/src/add-ons/media/plugins/matroska/matroska_codecs.cpp +++ b/src/add-ons/media/plugins/matroska/matroska_codecs.cpp @@ -163,6 +163,7 @@ GetVideoFormat(media_format *format, const char *codec, void *private_data, int if (IS_CODEC(codec, "V_MS/VFW/FOURCC")) { if (private_size < (int)sizeof(bitmap_info_header)) { + TRACE("private_size too small!\n"); return B_ERROR; } const bitmap_info_header *bih = (const bitmap_info_header *)private_data; @@ -177,6 +178,11 @@ GetVideoFormat(media_format *format, const char *codec, void *private_data, int return B_OK; } + if (IS_CODEC(codec, "V_MPEG4/ISO/AVC")) { + printf("TODO: MPEG4/AVC a.k.a h264\n"); + return B_ERROR; + } + TRACE("not a codec!\n"); return B_ERROR; }