GNOME Bugzilla – Bug 647830
assrender: crashes with very large subtitles
Last modified: 2011-04-16 11:13:19 UTC
Created attachment 185993 [details] [review] patch assrender crashes writing outside the video image area if the subtitle image is large enough, and the y position is odd. Example crash video at http://www.schleef.org/~ds/ghost-crab-bad-subtitles.mkv The blit code seems to make the assumption that the y position is even. That is, if the x or y position is odd, it technically rendered wrong. As a workaround, I rounded down to even. After the release, I can orcify the blitting and fix it at the same time.
Created attachment 185994 [details] [review] patch
Pushed this, definitely fixes invalid access reported by valgrind. Causes these warnings now with gcc 4.6 though: CC libgstassrender_la-gstassrender.lo gstassrender.c: In function 'blit_i420': gstassrender.c:576:8: warning: variable 'src_stride' set but not used [-Wunused-but-set-variable] gstassrender.c:573:8: warning: variable 'w2' set but not used [-Wunused-but-set-variable]