[FFmpeg-cvslog] compat/cuda/ptx2c: don't drop final newline

Timo Rothenpieler git at videolan.org
Fri May 24 20:24:19 EEST 2019


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Fri May 24 19:23:39 2019 +0200| [a6818d5bd0099de3f36406481b1672e430dacba5] | committer: Timo Rothenpieler

compat/cuda/ptx2c: don't drop final newline

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a6818d5bd0099de3f36406481b1672e430dacba5
---

 compat/cuda/ptx2c.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compat/cuda/ptx2c.sh b/compat/cuda/ptx2c.sh
index 5ccabbf56f..0750e7a3b7 100755
--- a/compat/cuda/ptx2c.sh
+++ b/compat/cuda/ptx2c.sh
@@ -27,7 +27,7 @@ IN="$2"
 NAME="$(basename "$IN" | sed 's/\..*//')"
 
 printf "const char %s_ptx[] = \\" "$NAME" > "$OUT"
-while read LINE
+while IFS= read -r LINE
 do
     printf "\n\t\"%s\\\n\"" "$(printf "%s" "$LINE" | sed -e 's/\r//g' -e 's/["\\]/\\&/g')" >> "$OUT"
 done < "$IN"



More information about the ffmpeg-cvslog mailing list