diff options
author | van <[email protected]> | 2008-11-08 06:50:15 +0000 |
---|---|---|
committer | van <[email protected]> | 2008-11-08 06:50:15 +0000 |
commit | fa63e466c782f2d803cd800148fdfd266d26bfe7 (patch) | |
tree | 52bbc3e91f3ed43ee536c46ca54660a04aedb086 /libhb/decmpeg2.c | |
parent | 89eef8d080649cc44a1abc7ed0a0248c6976951d (diff) |
Correct chroma size for raw video frames - width & height need to be rounded up if they're odd before dividing by 2.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1905 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decmpeg2.c')
-rw-r--r-- | libhb/decmpeg2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/decmpeg2.c b/libhb/decmpeg2.c index e0387dd64..eae00919c 100644 --- a/libhb/decmpeg2.c +++ b/libhb/decmpeg2.c @@ -75,7 +75,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 ) { |