[SCM] libav/experimental: output example: use a macro instead of a static variable
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Aug 10 16:03:38 UTC 2014
The following commit has been merged in the experimental branch:
commit 6a927d7aaf5625e83a674072913b9e292a303fd1
Author: Anton Khirnov <anton at khirnov.net>
Date: Tue Jun 24 09:28:41 2014 +0200
output example: use a macro instead of a static variable
diff --git a/doc/examples/output.c b/doc/examples/output.c
index 36b4229..ffc6e55 100644
--- a/doc/examples/output.c
+++ b/doc/examples/output.c
@@ -45,7 +45,7 @@
#define STREAM_NB_FRAMES ((int)(STREAM_DURATION * STREAM_FRAME_RATE))
#define STREAM_PIX_FMT AV_PIX_FMT_YUV420P /* default pix_fmt */
-static int sws_flags = SWS_BICUBIC;
+#define SCALE_FLAGS SWS_BICUBIC
// a wrapper around a single output AVStream
typedef struct OutputStream {
@@ -344,7 +344,7 @@ static void write_video_frame(AVFormatContext *oc, OutputStream *ost)
AV_PIX_FMT_YUV420P,
c->width, c->height,
c->pix_fmt,
- sws_flags, NULL, NULL, NULL);
+ SCALE_FLAGS, NULL, NULL, NULL);
if (img_convert_ctx == NULL) {
fprintf(stderr,
"Cannot initialize the conversion context\n");
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list