Skip to content

Commit

Permalink
Fix crf 0 issue related to profile being set
Browse files Browse the repository at this point in the history
  • Loading branch information
xzKinGzxBuRnzx authored Aug 24, 2018
1 parent d7d28c1 commit 4b1d828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion M4V-Converter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ for valid in "${VALID[@]}"; do
convert=true
fi
profile=false
if [[ "${CONF_PROFILE}" != "*" ]] && [[ "${CONF_ENCODER_NAME}" == "h264" ]]; then
if (( CONF_CRF != 0 )) && [[ "${CONF_PROFILE}" != "*" ]] && [[ "${CONF_ENCODER_NAME}" == "h264" ]]; then
videoprofile=$(echo "${videodata}" | grep -x 'profile=.*' | sed 's/profile=//g')
if ! [[ "${videoprofile,,}" =~ "constrained" ]]; then
if [[ "${videoprofile,,}" != "${CONF_PROFILE}" ]]; then
Expand Down

0 comments on commit 4b1d828

Please sign in to comment.