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/rendersub.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/rendersub.c')
-rw-r--r-- | libhb/rendersub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/rendersub.c b/libhb/rendersub.c index 26a3ec06d..e10177fc9 100644 --- a/libhb/rendersub.c +++ b/libhb/rendersub.c @@ -358,7 +358,7 @@ static hb_buffer_t * RenderSSAFrame( ASS_Image * frame ) unsigned frameV = (yuv >> 8 ) & 0xff; unsigned frameU = (yuv >> 0 ) & 0xff; - sub = hb_pic_buffer_init( PIX_FMT_YUVA420P, frame->w, frame->h ); + sub = hb_frame_buffer_init( PIX_FMT_YUVA420P, frame->w, frame->h ); if( sub == NULL ) return NULL; |