[FFmpeg-devel] [PATCH] ffmpeg: sub2video: set resample size.

Nicolas George nicolas.george at normalesup.org
Tue Jan 1 18:33:49 CET 2013


Necessary after 04a530f.

Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 ffmpeg_filter.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


Will push very soon unless someone objects.


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 */
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list