root/branches/perian-1.1/Patches/ffmpeg-h264dsp-crash.diff
| Revision 923, 2.9 kB (checked in by astrange, 4 months ago) |
|---|
-
ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c
old new 185 185 } 186 186 } 187 187 188 extern void H264_CHROMA_MC4_C(uint8_t *dst/*align 4*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y); 189 188 190 static void H264_CHROMA_MC4_TMPL(uint8_t *dst/*align 4*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y) 189 191 { 192 if (!(x*y)) {H264_CHROMA_MC4_C(dst, src, stride, h, x, y); return;} 193 190 194 asm volatile( 191 195 "pxor %%mm7, %%mm7 \n\t" 192 196 "movd %5, %%mm2 \n\t" -
ffmpeg/libavcodec/i386/dsputil_mmx.c
old new 2626 2626 H264_QPEL_FUNCS(3, 2, sse2); 2627 2627 H264_QPEL_FUNCS(3, 3, sse2); 2628 2628 } 2629 #undef H264_QPEL_FUNCS 2630 #define H264_QPEL_FUNCS(x, y, CPU) 2629 2631 #ifdef HAVE_SSSE3 2630 2632 if(mm_flags & MM_SSSE3){ 2631 2633 H264_QPEL_FUNCS(1, 0, ssse3); -
ffmpeg/libavcodec/i386/h264dsp_mmx.c
old new 1922 1922 #define H264_CHROMA_OP4(S,D,T) 1923 1923 #define H264_CHROMA_MC8_TMPL put_h264_chroma_mc8_mmx 1924 1924 #define H264_CHROMA_MC4_TMPL put_h264_chroma_mc4_mmx 1925 #define H264_CHROMA_MC4_C put_h264_chroma_mc4_c 1925 1926 #define H264_CHROMA_MC2_TMPL put_h264_chroma_mc2_mmx2 1926 1927 #define H264_CHROMA_MC8_MV0 put_pixels8_mmx 1927 1928 #include "dsputil_h264_template_mmx.c" … … 1939 1940 #undef H264_CHROMA_OP4 1940 1941 #undef H264_CHROMA_MC8_TMPL 1941 1942 #undef H264_CHROMA_MC4_TMPL 1943 #undef H264_CHROMA_MC4_C 1942 1944 #undef H264_CHROMA_MC2_TMPL 1943 1945 #undef H264_CHROMA_MC8_MV0 1944 1946 … … 1947 1949 "pavgb " #T ", " #D " \n\t" 1948 1950 #define H264_CHROMA_MC8_TMPL avg_h264_chroma_mc8_mmx2 1949 1951 #define H264_CHROMA_MC4_TMPL avg_h264_chroma_mc4_mmx2 1952 #define H264_CHROMA_MC4_C avg_h264_chroma_mc4_c 1950 1953 #define H264_CHROMA_MC2_TMPL avg_h264_chroma_mc2_mmx2 1951 1954 #define H264_CHROMA_MC8_MV0 avg_pixels8_mmx2 1952 1955 #include "dsputil_h264_template_mmx.c" -
ffmpeg/libavcodec/dsputil.c
old new 1592 1592 }\ 1593 1593 }\ 1594 1594 \ 1595 staticvoid OPNAME ## h264_chroma_mc4_c(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y){\1595 void OPNAME ## h264_chroma_mc4_c(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y){\ 1596 1596 const int A=(8-x)*(8-y);\ 1597 1597 const int B=( x)*(8-y);\ 1598 1598 const int C=(8-x)*( y);\
Note: See TracBrowser for help on using the browser.
