aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-06-24 09:28:41 +0200
committerAnton Khirnov <anton@khirnov.net>2014-06-26 16:07:23 +0200
commit6a927d7aaf5625e83a674072913b9e292a303fd1 (patch)
tree177cbc01044b0e8bbc6bbd746b6ed6ed93877934
parent63fd0d866c8300a8f251a15b1535e9ce40a407fb (diff)
downloadffmpeg-6a927d7aaf5625e83a674072913b9e292a303fd1.tar.gz
output example: use a macro instead of a static variable
-rw-r--r--doc/examples/output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/output.c b/doc/examples/output.c
index 36b4229551..ffc6e55e27 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");