Commit 9d5daca2 authored by Martin Storsjö's avatar Martin Storsjö

Revert "omxil: Set the WMV type"

This reverts commit c73e88ce.

The WMV1/2 decoders use a different role name, and this parameter
is unsupported on them. Therefore, there's not much use in trying to
set it at all.
Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 13618e09
......@@ -437,27 +437,6 @@ static OMX_ERRORTYPE SetPortDefinition(decoder_t *p_dec, OmxPort *p_port,
def->nBufferSize *= 2;
}
if (def->format.video.eCompressionFormat == OMX_VIDEO_CodingWMV) {
OMX_VIDEO_PARAM_WMVTYPE wmvtype = { 0 };
OMX_INIT_STRUCTURE(wmvtype);
wmvtype.nPortIndex = def->nPortIndex;
switch (p_dec->fmt_in.i_codec) {
case VLC_CODEC_WMV1:
wmvtype.eFormat = OMX_VIDEO_WMVFormat7;
break;
case VLC_CODEC_WMV2:
wmvtype.eFormat = OMX_VIDEO_WMVFormat8;
break;
case VLC_CODEC_WMV3:
case VLC_CODEC_VC1:
wmvtype.eFormat = OMX_VIDEO_WMVFormat9;
break;
}
omx_error = OMX_SetParameter(p_port->omx_handle, OMX_IndexParamVideoWmv, &wmvtype);
CHECK_ERROR(omx_error, "OMX_SetParameter OMX_IndexParamVideoWmv failed (%x : %s)",
omx_error, ErrorToString(omx_error));
}
error:
return omx_error;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment