Revision c009df3f libavcodec/h264.c

View differences:

libavcodec/h264.c
1895 1895
       || full_my < 0-extra_height 
1896 1896
       || full_mx + 16/*FIXME*/ > s->width + extra_width 
1897 1897
       || full_my + 16/*FIXME*/ > s->height + extra_height){
1898
        ff_emulated_edge_mc(s, src_y - 2 - 2*s->linesize, s->linesize, 16+5, 16+5/*FIXME*/, full_mx-2, full_my-2, s->width, s->height);
1898
        ff_emulated_edge_mc(s->edge_emu_buffer, src_y - 2 - 2*s->linesize, s->linesize, 16+5, 16+5/*FIXME*/, full_mx-2, full_my-2, s->width, s->height);
1899 1899
            src_y= s->edge_emu_buffer + 2 + 2*s->linesize;
1900 1900
        emu=1;
1901 1901
    }
......
1908 1908
    if(s->flags&CODEC_FLAG_GRAY) return;
1909 1909
    
1910 1910
    if(emu){
1911
        ff_emulated_edge_mc(s, src_cb, s->uvlinesize, 9, 9/*FIXME*/, (mx>>3), (my>>3), s->width>>1, s->height>>1);
1911
        ff_emulated_edge_mc(s->edge_emu_buffer, src_cb, s->uvlinesize, 9, 9/*FIXME*/, (mx>>3), (my>>3), s->width>>1, s->height>>1);
1912 1912
            src_cb= s->edge_emu_buffer;
1913 1913
    }
1914 1914
    chroma_op(dest_cb, src_cb, s->uvlinesize, chroma_height, mx&7, my&7);
1915 1915

  
1916 1916
    if(emu){
1917
        ff_emulated_edge_mc(s, src_cr, s->uvlinesize, 9, 9/*FIXME*/, (mx>>3), (my>>3), s->width>>1, s->height>>1);
1917
        ff_emulated_edge_mc(s->edge_emu_buffer, src_cr, s->uvlinesize, 9, 9/*FIXME*/, (mx>>3), (my>>3), s->width>>1, s->height>>1);
1918 1918
            src_cr= s->edge_emu_buffer;
1919 1919
    }
1920 1920
    chroma_op(dest_cr, src_cr, s->uvlinesize, chroma_height, mx&7, my&7);

Also available in: Unified diff