[vlc-commits] mediacodec: handle adaptive for mp4v
Thomas Guillem
git at videolan.org
Thu Mar 30 15:10:18 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Mar 30 14:15:03 2017 +0200| [7506025fcd18a840041e38da0f02f7be8ab081fe] | committer: Thomas Guillem
mediacodec: handle adaptive for mp4v
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7506025fcd18a840041e38da0f02f7be8ab081fe
---
modules/codec/omxil/mediacodec.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index 2407583..c67278a 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -387,6 +387,7 @@ static int ParseVideoExtraWmv3(decoder_t *p_dec, uint8_t *p_extra, int i_extra)
static int ParseExtra(decoder_t *p_dec)
{
+ decoder_sys_t *p_sys = p_dec->p_sys;
uint8_t *p_extra = p_dec->fmt_in.p_extra;
int i_extra = p_dec->fmt_in.i_extra;
@@ -400,6 +401,10 @@ static int ParseExtra(decoder_t *p_dec)
return ParseVideoExtraWmv3(p_dec, p_extra, i_extra);
case VLC_CODEC_VC1:
return ParseVideoExtraVc1(p_dec, p_extra, i_extra);
+ case VLC_CODEC_MP4V:
+ if (!i_extra && p_sys->api.i_quirks & MC_API_VIDEO_QUIRKS_ADAPTIVE)
+ p_sys->b_adaptive = true;
+ /* fall through */
default:
/* Set default CSD */
if (p_dec->fmt_in.i_extra)
More information about the vlc-commits
mailing list