summaryrefslogtreecommitdiffstats
path: root/libhb/deblock.c
diff options
context:
space:
mode:
authorvan <[email protected]>2008-11-08 06:50:15 +0000
committervan <[email protected]>2008-11-08 06:50:15 +0000
commitfa63e466c782f2d803cd800148fdfd266d26bfe7 (patch)
tree52bbc3e91f3ed43ee536c46ca54660a04aedb086 /libhb/deblock.c
parent89eef8d080649cc44a1abc7ed0a0248c6976951d (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/deblock.c')
-rw-r--r--libhb/deblock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libhb/deblock.c b/libhb/deblock.c
index dbc669031..f549fbbb5 100644
--- a/libhb/deblock.c
+++ b/libhb/deblock.c
@@ -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;
}