Skip to content

Commit

Permalink
Fix scale_vaapi (#91)
Browse files Browse the repository at this point in the history
* Fix scale_vaapi
  • Loading branch information
AlexPresso authored Sep 18, 2023
1 parent d4e0e4d commit f4bb2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrappers/ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fix_args() {
scale_w=$(echo "$arg" | sed -e 's/.*=w=//g' | sed -e 's/:h=.*//g')
# shellcheck disable=SC2001
scale_h=$(echo "$arg" | sed -e 's/.*:h=//g')
if [[ "$scale_w" != "" && "$scale_h" != "" ]]; then
if (( scale_w && scale_h )); then
arg="scale_vaapi=w=$scale_w:h=$scale_h:format=nv12,hwupload,setsar=sar=1"
else
arg="scale_vaapi=format=nv12,hwupload,setsar=sar=1"
Expand Down

0 comments on commit f4bb2e2

Please sign in to comment.