root/branches/perian-1.1/Patches/ffmpeg-h264dsp-crash.diff

Revision 923, 2.9 kB (checked in by astrange, 4 months ago)

Merge trunk to the branch.
Disable ssse3 qpel stuff (https://roundup.mplayerhq.hu/roundup/ffmpeg/issue463)

  • ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c

    old new  
    185185    } 
    186186} 
    187187 
     188extern void H264_CHROMA_MC4_C(uint8_t *dst/*align 4*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y); 
     189 
    188190static void H264_CHROMA_MC4_TMPL(uint8_t *dst/*align 4*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y) 
    189191{ 
     192        if (!(x*y)) {H264_CHROMA_MC4_C(dst, src, stride, h, x, y); return;} 
     193 
    190194    asm volatile( 
    191195        "pxor   %%mm7, %%mm7        \n\t" 
    192196        "movd %5, %%mm2             \n\t" 
  • ffmpeg/libavcodec/i386/dsputil_mmx.c

    old new  
    26262626            H264_QPEL_FUNCS(3, 2, sse2); 
    26272627            H264_QPEL_FUNCS(3, 3, sse2); 
    26282628        } 
     2629#undef  H264_QPEL_FUNCS 
     2630#define H264_QPEL_FUNCS(x, y, CPU)  
    26292631#ifdef HAVE_SSSE3 
    26302632        if(mm_flags & MM_SSSE3){ 
    26312633            H264_QPEL_FUNCS(1, 0, ssse3); 
  • ffmpeg/libavcodec/i386/h264dsp_mmx.c

    old new  
    19221922#define H264_CHROMA_OP4(S,D,T) 
    19231923#define H264_CHROMA_MC8_TMPL put_h264_chroma_mc8_mmx 
    19241924#define H264_CHROMA_MC4_TMPL put_h264_chroma_mc4_mmx 
     1925#define H264_CHROMA_MC4_C put_h264_chroma_mc4_c 
    19251926#define H264_CHROMA_MC2_TMPL put_h264_chroma_mc2_mmx2 
    19261927#define H264_CHROMA_MC8_MV0 put_pixels8_mmx 
    19271928#include "dsputil_h264_template_mmx.c" 
     
    19391940#undef H264_CHROMA_OP4 
    19401941#undef H264_CHROMA_MC8_TMPL 
    19411942#undef H264_CHROMA_MC4_TMPL 
     1943#undef H264_CHROMA_MC4_C 
    19421944#undef H264_CHROMA_MC2_TMPL 
    19431945#undef H264_CHROMA_MC8_MV0 
    19441946 
     
    19471949                               "pavgb " #T ", " #D " \n\t" 
    19481950#define H264_CHROMA_MC8_TMPL avg_h264_chroma_mc8_mmx2 
    19491951#define H264_CHROMA_MC4_TMPL avg_h264_chroma_mc4_mmx2 
     1952#define H264_CHROMA_MC4_C avg_h264_chroma_mc4_c 
    19501953#define H264_CHROMA_MC2_TMPL avg_h264_chroma_mc2_mmx2 
    19511954#define H264_CHROMA_MC8_MV0 avg_pixels8_mmx2 
    19521955#include "dsputil_h264_template_mmx.c" 
  • ffmpeg/libavcodec/dsputil.c

    old new  
    15921592    }\ 
    15931593}\ 
    15941594\ 
    1595 static void OPNAME ## h264_chroma_mc4_c(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y){\ 
     1595void OPNAME ## h264_chroma_mc4_c(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y){\ 
    15961596    const int A=(8-x)*(8-y);\ 
    15971597    const int B=(  x)*(8-y);\ 
    15981598    const int C=(8-x)*(  y);\ 
Note: See TracBrowser for help on using the browser.