Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2016-11-03 18:20:59 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2016-11-03 18:20:59 +0300
commit31d657130b02b151a2fe6739f782d9d504b2cfda (patch)
treef5f65b158a2723040a006d9409e519f0e924f244 /ffmpeg_filter.c
parentb6422902d84ec8df6f5a64ffd8743e93307bd8e9 (diff)
ffmpeg: fix width/height overrides for sub2video processing
Diffstat (limited to 'ffmpeg_filter.c')
-rw-r--r--ffmpeg_filter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg_filter.c b/ffmpeg_filter.c
index 38dfe5c398..5a0e85e3c0 100644
--- a/ffmpeg_filter.c
+++ b/ffmpeg_filter.c
@@ -692,8 +692,8 @@ static int sub2video_prepare(InputStream *ist, InputFilter *ifilter)
}
av_log(avf, AV_LOG_INFO, "sub2video: using %dx%d canvas\n", w, h);
}
- ist->sub2video.w = ist->resample_width = w;
- ist->sub2video.h = ist->resample_height = h;
+ ist->sub2video.w = ist->resample_width = ifilter->width = w;
+ ist->sub2video.h = ist->resample_height = ifilter->height = h;
/* rectangles are AV_PIX_FMT_PAL8, but we have no guarantee that the
palettes for all rectangles are identical or compatible */