diff options
author | jstebbins <[email protected]> | 2012-03-31 15:03:16 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2012-03-31 15:03:16 +0000 |
commit | 57e4d1bcc1a8040562b2d248742ff74b34ca846a (patch) | |
tree | b24bf501c52a127e61bffc77c1246d0055ea0aee /libhb/decvobsub.c | |
parent | f8f1631a89c587600d6bfd82a01583afdde9f744 (diff) |
libhb: fix cfr encoding
when frames are duplicated, the frame was not copied properly and resulted
in divide by 0 later when the frame is processed.
This fix is a bit larger than the minimum size necessary to fix the problem.
I took the oportunity to clean up some buffer initialization and copy
operations.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4563 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decvobsub.c')
-rw-r--r-- | libhb/decvobsub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/decvobsub.c b/libhb/decvobsub.c index 2160d59e2..b633e7804 100644 --- a/libhb/decvobsub.c +++ b/libhb/decvobsub.c @@ -543,7 +543,7 @@ static hb_buffer_t * CropSubtitle( hb_work_object_t * w, uint8_t * raw ) realwidth = crop[3] - crop[2] + 1; realheight = crop[1] - crop[0] + 1; - buf = hb_pic_buffer_init( PIX_FMT_YUVA420P, realwidth, realheight ); + buf = hb_frame_buffer_init( PIX_FMT_YUVA420P, realwidth, realheight ); buf->s.start = pv->pts_start; buf->s.stop = pv->pts_stop; buf->s.type = SUBTITLE_BUF; |