Skip to content

Commit

Permalink
mod_video: escape filename for ffmpeg preview cmd (#3114)
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed Aug 30, 2022
1 parent 7c02a36 commit e190423
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mod_video/mod_video.erl
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ video_preview(MovieFile, Props) ->
iolist_to_binary(
[
case string:str(Cmdline, "-itsoffset") of
0 -> io_lib:format(Cmdline, [MovieFile]);
_ -> io_lib:format(Cmdline, [Start, MovieFile])
0 -> io_lib:format(Cmdline, [z_utils:os_filename(MovieFile)]);
_ -> io_lib:format(Cmdline, [Start, z_utils:os_filename(MovieFile)])
end,
" ",
orientation_to_transpose(proplists:get_value(orientation, Props)),
Expand Down

0 comments on commit e190423

Please sign in to comment.