Skip to content

Commit

Permalink
adjust mcimplement to accept MA-MIMMT input and handle conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
dericed committed Jun 21, 2017
1 parent 7735fe1 commit 616ec80
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions MetadataDevelopment/ImplementationChecks/mcimplement
Expand Up @@ -38,11 +38,16 @@ implementationcheckfile="implementationCheckEBML_micro.xsl"
while [ "${*}" != "" ] ; do
INPUT="${1}"
shift
mc_tmp=$(_maketemp)
mediaconch -mi -mmt -fx --ParseSpeed=0.5 --force "${INPUT}" > "${mc_tmp}"
if [[ "${INPUT##*.}" == "xml" ]] ; then
MIMMTFILE="${INPUT}"
else
mc_tmp=$(_maketemp)
mediaconch -mi -mmt -fx --ParseSpeed=0.5 --force "${INPUT}" > "${mc_tmp}"
MIMMTFILE="${mc_tmp}"
fi
if [ -f "${displayfile}" ] ; then
xsltproc --stringparam schema MatroskaSchema.xml --stringparam verbosity 5 "${implementationcheckfile}" "${mc_tmp}" | xsltproc "${displayfile}" -
xsltproc --stringparam schema MatroskaSchema.xml --stringparam verbosity 5 "${implementationcheckfile}" "${MIMMTFILE}" | xsltproc "${displayfile}" -
else
xsltproc --stringparam schema MatroskaSchema.xml --stringparam verbosity 5 "${implementationcheckfile}" "${mc_tmp}"
xsltproc --stringparam schema MatroskaSchema.xml --stringparam verbosity 5 "${implementationcheckfile}" "${MIMMTFILE}"
fi
done

0 comments on commit 616ec80

Please sign in to comment.