diff options
author | Rodeo <[email protected]> | 2012-12-31 16:54:11 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2012-12-31 16:54:11 +0000 |
commit | 01d1b85d7adecdc588d5450ee43c52809c0b1c3f (patch) | |
tree | 4f08f2381a18b4e62c4e5a82d7b610c68e8f1432 /libhb/encx264.c | |
parent | b96ca4f7de03e2c1b2d6865a0ae65798c1afed6f (diff) |
Bump libav to v9_beta3.
Miscellaneous bugfixes and improvements.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5124 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encx264.c')
-rw-r--r-- | libhb/encx264.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c index 74a4adda2..f5808963f 100644 --- a/libhb/encx264.c +++ b/libhb/encx264.c @@ -340,10 +340,10 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job ) if( job->grayscale ) { - int uvsize = hb_image_stride( PIX_FMT_YUV420P, job->width, 1 ) * - hb_image_height( PIX_FMT_YUV420P, job->height, 1 ); - pv->grey_data = malloc( uvsize ); - memset( pv->grey_data, 0x80, uvsize ); + int uvsize = (hb_image_stride(AV_PIX_FMT_YUV420P, job->width, 1) * + hb_image_height(AV_PIX_FMT_YUV420P, job->height, 1)); + pv->grey_data = malloc(uvsize); + memset(pv->grey_data, 0x80, uvsize); pv->pic_in.img.plane[1] = pv->pic_in.img.plane[2] = pv->grey_data; } |