summaryrefslogtreecommitdiff
authorNicolas George <nicolas.george@normalesup.org>2013-01-01 16:25:04 (GMT)
committer Nicolas George <nicolas.george@normalesup.org>2013-01-01 22:06:34 (GMT)
commit102cf964ddc97b5ee4a5fe194794ae594617bfaf (patch)
tree56dfd76f2df8db2d1b14fae8a99f1d6359fb3436
parent5ed5e90f2ae299cbec66996860d794771a85fee8 (diff)
downloadffmpeg-102cf964ddc97b5ee4a5fe194794ae594617bfaf.zip
ffmpeg-102cf964ddc97b5ee4a5fe194794ae594617bfaf.tar.gz
ffmpeg-102cf964ddc97b5ee4a5fe194794ae594617bfaf.tar.bz2
ffmpeg: sub2video: set resample size.
Necessary after 04a530f.
Diffstat
-rw-r--r--ffmpeg_filter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg_filter.c b/ffmpeg_filter.c
index ab2c492..6030930 100644
--- a/ffmpeg_filter.c
+++ b/ffmpeg_filter.c
@@ -517,8 +517,8 @@ static int sub2video_prepare(InputStream *ist)
}
av_log(avf, AV_LOG_INFO, "sub2video: using %dx%d canvas\n", w, h);
}
- ist->sub2video.w = ist->st->codec->width = w;
- ist->sub2video.h = ist->st->codec->height = h;
+ ist->sub2video.w = ist->st->codec->width = ist->resample_width = w;
+ ist->sub2video.h = ist->st->codec->height = ist->resample_height = h;
/* rectangles are AV_PIX_FMT_PAL8, but we have no guarantee that the
palettes for all rectangles are identical or compatible */