Skip to content
Snippets Groups Projects
Commit 48af2096 authored by Fang Lu's avatar Fang Lu
Browse files

osufs - fix ffmpeg command

parent b82d9b1e
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ uint16_t img_write_dither128(const char *filename, mdev *dev, uint16_t addr) {
system("rm -f /tmp/source.png /tmp/plt.png /tmp/dither.png");
// Resize
sprintf(cbuf, "ffmpeg -i %s -vf \"scale=640:480\" /tmp/source.png", filename);
sprintf(cbuf, "ffmpeg -i \"%s\" -vf \"scale=640:480\" /tmp/source.png", filename);
ret = system(cbuf);
if (ret != 0) {
fprintf(stderr, "ffmpeg resize failed with exit code: %d\n", ret);
......@@ -90,7 +90,7 @@ size_t img_write_rgb16(const char *filename, mdev *dev, uint16_t addr) {
system("rm -f /tmp/source.bmp");
// Resize
sprintf(cbuf, "ffmpeg -i %s -vf \"scale=640:480\" -pix_fmt rgb24 /tmp/source.png", filename);
sprintf(cbuf, "ffmpeg -i \"%s\" -vf \"scale=640:480\" -pix_fmt rgb24 /tmp/source.png", filename);
ret = system(cbuf);
if (ret != 0) {
fprintf(stderr, "ffmpeg resize failed with exit code: %d\n", ret);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment