X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Fdeblock.c;h=261b0b3017876add313e66b8f33a0c78fe4e72e2;hb=033e32de9c380f54c7d1362a3979da205ebc3a29;hp=dbc669031937ccff4b85e193e194d98ff023c908;hpb=b2f4ad4070eea97359dc8a4f7cf48828a2b247f8;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/deblock.c b/libhb/deblock.c index dbc66903..261b0b30 100644 --- a/libhb/deblock.c +++ b/libhb/deblock.c @@ -17,7 +17,7 @@ */ #include "hb.h" -#include "libavcodec/avcodec.h" +#include "hbffmpeg.h" #include "mpeg2dec/mpeg2.h" #define PP7_QP_DEFAULT 5 @@ -405,8 +405,7 @@ hb_filter_private_t * hb_deblock_init( int pix_fmt, pv->pp7_src = (uint8_t*)malloc( pv->pp7_temp_stride*(h+8)*sizeof(uint8_t) ); - int buf_size = 3 * width * height / 2; - pv->buf_out = hb_buffer_init( buf_size ); + pv->buf_out = hb_video_buffer_init( width, height ); return pv; }