[FFmpeg-cvslog] ffmpeg: sub2video: set resample size.

Nicolas George git at videolan.org
Wed Jan 2 00:12:52 CET 2013


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Tue Jan  1 17:25:04 2013 +0100| [102cf964ddc97b5ee4a5fe194794ae594617bfaf] | committer: Nicolas George

ffmpeg: sub2video: set resample size.

Necessary after 04a530f.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=102cf964ddc97b5ee4a5fe194794ae594617bfaf
---

 ffmpeg_filter.c |    4 ++--
 1 file 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 */



More information about the ffmpeg-cvslog mailing list