]> git.sesse.net Git - ffmpeg/commitdiff
ffmpeg_filter: Do not override the dimensions in sub2video_prepare()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 15 Aug 2015 15:27:25 +0000 (17:27 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 15 Aug 2015 15:41:48 +0000 (17:41 +0200)
Fixes ticket4744 part1

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffmpeg_filter.c

index 8a96c4be86734fd12c85dbd3d2c6f3fe773c2d1b..6a59f0547ba5300b2fb2e1fcbba8e0f19255113a 100644 (file)
@@ -682,8 +682,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->dec_ctx->width  = ist->resample_width  = w;
-    ist->sub2video.h = ist->dec_ctx->height = ist->resample_height = h;
+    ist->sub2video.w = ist->resample_width  = w;
+    ist->sub2video.h = 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 */