From d0c53c57394fd46fa2dbfd715d431549a07799a5 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sat, 8 May 2010 22:42:08 +0200 Subject: [PATCH] O_DIRECT works!!! --- build/Makefile.omk | 17 +++++++++++------ src/ffmpeg | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/build/Makefile.omk b/build/Makefile.omk index 9e9dd19..68a89ba 100644 --- a/build/Makefile.omk +++ b/build/Makefile.omk @@ -1,9 +1,14 @@ SUBDIRS=$(sort $(ALL_OMK_SUBDIRS) ffmpeg) -test: - ./_compiled/bin/recorder -i snapshot%02d.png -y test_normal.mp4 - ./_compiled/bin/recorder -i snapshot%02d.png -y -direct test_direct.mp4 - hexdump -C test_normal.mp4 > test_normal.hex - hexdump -C test_direct.mp4 > test_direct.hex - kdiff3 test_normal.hex test_direct.hex +test: run_diff + +.PHONY: test run_diff + +test_direct.mp4: RECFLAGS=-direct +test_%.mp4: _compiled/bin/recorder + ./_compiled/bin/recorder -i snapshot%02d.png -y $(RECFLAGS) $@ 2>&1 | tee $@.log +%.hex: %.mp4 + hexdump -C $< > $@ +run_diff: test_normal.hex test_direct.hex + kdiff3 $^ diff --git a/src/ffmpeg b/src/ffmpeg index a4582fb..393f034 160000 --- a/src/ffmpeg +++ b/src/ffmpeg @@ -1 +1 @@ -Subproject commit a4582fb42456fe83734835ecc73d5a9b2ec2aba3 +Subproject commit 393f0349bfb53860d5b44e8b936395bd5727914c -- 2.39.2