diff options
author | jstebbins <[email protected]> | 2012-06-22 23:30:02 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2012-06-22 23:30:02 +0000 |
commit | 9f9853aac829e2010ff11f2d4895c87807a26d7f (patch) | |
tree | 4f2d2442efe9e98ee90c313ca483e00aa9f5a37a /libhb | |
parent | 4bf5490642d2b1d8cfc27ced382b5fdcf6acab7c (diff) |
last "fix" was flawed. try again :(
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4771 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/decomb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libhb/decomb.c b/libhb/decomb.c index fb6444c1c..3ce36d23e 100644 --- a/libhb/decomb.c +++ b/libhb/decomb.c @@ -1913,9 +1913,9 @@ static int hb_decomb_init( hb_filter_object_t * filter, filter->private_data = calloc( 1, sizeof(struct hb_filter_private_s) ); hb_filter_private_t * pv = filter->private_data; - pv->width[0] = hb_image_width( init->pix_fmt, init->width, 0 ); + pv->width[0] = hb_image_stride( init->pix_fmt, init->width, 0 ); pv->height[0] = hb_image_height( init->pix_fmt, init->height, 0 ); - pv->width[1] = pv->width[2] = hb_image_width( init->pix_fmt, init->width, 1 ); + pv->width[1] = pv->width[2] = hb_image_stride( init->pix_fmt, init->width, 1 ); pv->height[1] = pv->height[2] = hb_image_height( init->pix_fmt, init->height, 1 ); build_gamma_lut( pv ); @@ -2390,7 +2390,7 @@ static int hb_decomb_work( hb_filter_object_t * filter, } // Allocate a replacement for the buffer we just consumed - pv->buf_out[out_frame] = hb_video_buffer_init( pv->width[0], pv->height[0] ); + pv->buf_out[out_frame] = hb_video_buffer_init( last->f.width, last->f.height ); /* Copy buffered settings to output buffer settings */ last->s = pv->buf_settings->s; |