[FFmpeg-devel] [PATCH] examples/decoding_encoding: store temporary files in current dir
Stefano Sabatini
stefasab at gmail.com
Thu Aug 23 20:18:17 CEST 2012
Do not clutter the temporary directory with files, also "/tmp" is not
always available, e.g. in Windows.
---
doc/examples/decoding_encoding.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/doc/examples/decoding_encoding.c b/doc/examples/decoding_encoding.c
index 96b1a4b..046c7da 100644
--- a/doc/examples/decoding_encoding.c
+++ b/doc/examples/decoding_encoding.c
@@ -606,18 +606,18 @@ int main(int argc, char **argv)
avcodec_register_all();
if (argc <= 1) {
- audio_encode_example("/tmp/test.mp2");
- audio_decode_example("/tmp/test.sw", "/tmp/test.mp2");
+ audio_encode_example("test.mp2");
+ audio_decode_example("test.sw", "test.mp2");
- video_encode_example("/tmp/test.h264", AV_CODEC_ID_H264);
- video_encode_example("/tmp/test.mpg", AV_CODEC_ID_MPEG1VIDEO);
- filename = "/tmp/test.mpg";
+ video_encode_example("test.h264", AV_CODEC_ID_H264);
+ video_encode_example("test.mpg", AV_CODEC_ID_MPEG1VIDEO);
+ filename = "test.mpg";
} else {
filename = argv[1];
}
- // audio_decode_example("/tmp/test.sw", filename);
- video_decode_example("/tmp/test%d.pgm", filename);
+ // audio_decode_example("test.sw", filename);
+ video_decode_example("test%02d.pgm", filename);
return 0;
}
--
1.7.5.4
More information about the ffmpeg-devel
mailing list