[FFmpeg-devel] PATCH: fix crash @ deinterlace.asm missing .text section

avcoder ffmpeg
Sun Nov 28 15:15:39 CET 2010


the yasm version's deinterlace forgets the .text section, all codes are
compiled into data section currently, it will cause exception at runtime.

the following tiny patch fixes this issue

diff --git a/libavcodec/x86/deinterlace.asm b/libavcodec/x86/deinterlace.asm
index 5db9464..76a096e 100644
--- a/libavcodec/x86/deinterlace.asm
+++ b/libavcodec/x86/deinterlace.asm
@@ -27,6 +27,8 @@ SECTION_RODATA

 cextern pw_4

+SECTION .text
 %ifidn %1, inplace
 ;void ff_deinterlace_line_inplace_mmx(const uint8_t *lum_m4, const uint8_t
*lum_m3, const uint8_t *lum_m2, const uint8_t *lum_m1, const uint8_t *lum,
 int size)

My key fingerprint: d1:03:f5:32:26:ff:d7:3c:e4:42:e3:51:ec:92:78:b2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deinterlace_need_text_section.patch
Type: application/octet-stream
Size: 452 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101128/3cd89301/attachment.obj>

More information about the ffmpeg-devel mailing list