[vlc-commits] mediacodec: Handle VC1

Martin Storsjö git at videolan.org
Wed Jan 30 15:37:57 CET 2013


vlc | branch: master | Martin Storsjö <martin at martin.st> | Tue Jan 29 17:55:10 2013 +0200| [224c8e3350aee9006fe88bfe813accfd4f45d72e] | committer: Jean-Baptiste Kempf

mediacodec: Handle VC1

This is tested to be working on Galaxy S3 on 4.1.2 (and
on 4.1.1 as well).

(WMV3 doesn't seem to work though, even after reformatting the
extradata as in the omxil decoder, MediaCodec.configure()
throws an exception.)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=224c8e3350aee9006fe88bfe813accfd4f45d72e
---

 modules/codec/omxil/android_mediacodec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/omxil/android_mediacodec.c b/modules/codec/omxil/android_mediacodec.c
index ff1e745..6956817 100644
--- a/modules/codec/omxil/android_mediacodec.c
+++ b/modules/codec/omxil/android_mediacodec.c
@@ -195,6 +195,7 @@ static int OpenDecoder(vlc_object_t *p_this)
     case VLC_CODEC_H264: mime = "video/avc"; break;
     case VLC_CODEC_H263: mime = "video/3gpp"; break;
     case VLC_CODEC_MP4V: mime = "video/mp4v-es"; break;
+    case VLC_CODEC_VC1:  mime = "video/wvc1"; break;
     default:
         msg_Dbg(p_dec, "codec %d not supported", p_dec->fmt_in.i_codec);
         return VLC_EGENERIC;



More information about the vlc-commits mailing list