X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Fdecmpeg2.c;h=83c36f6980e05dd80d5ff5a8e4ed661186dbd40e;hb=f9341345b37e0738a140423297c222a7e40eddab;hp=e0387dd64717e623c7103c7458e33d83edc25346;hpb=50719e513b04e853145076bf7d9ec8b73a81616a;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/decmpeg2.c b/libhb/decmpeg2.c index e0387dd6..83c36f69 100644 --- a/libhb/decmpeg2.c +++ b/libhb/decmpeg2.c @@ -5,10 +5,8 @@ It may be used under the terms of the GNU General Public License. */ #include "hb.h" - +#include "hbffmpeg.h" #include "mpeg2dec/mpeg2.h" -#include "libavcodec/avcodec.h" -#include "libswscale/swscale.h" /* Cadence tracking */ #ifndef PIC_FLAG_REPEAT_FIRST_FIELD @@ -75,7 +73,7 @@ static hb_buffer_t *hb_copy_frame( hb_job_t *job, int width, int height, dst_h = job->title->height; } int dst_wh = dst_w * dst_h; - hb_buffer_t *buf = hb_buffer_init( dst_wh + ( dst_wh >> 1 ) ); + hb_buffer_t *buf = hb_video_buffer_init( dst_w, dst_h ); if ( dst_w != width || dst_h != height ) {