diff options
author | jbrjake <[email protected]> | 2007-04-16 16:58:57 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2007-04-16 16:58:57 +0000 |
commit | 1b38e1511ba75646540f6d2b90b21713614de392 (patch) | |
tree | d82a8a528f2c1d6201167d26e5615b5a23b0d145 /libhb/render.c | |
parent | a715de4c2ff593e121fbfa394409eff4e493415b (diff) |
Much better B-frame muxing frame-reordering. This will preserve the sps/pps info, properly offset the first frame, and flush any remaining frames at the end of the encode.
Patch by: Nyx
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@513 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/render.c')
-rw-r--r-- | libhb/render.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libhb/render.c b/libhb/render.c index 782339116..b6f793fea 100644 --- a/libhb/render.c +++ b/libhb/render.c @@ -103,6 +103,13 @@ int renderWork( hb_work_object_t * w, hb_buffer_t ** buf_in, hb_title_t * title = job->title; hb_buffer_t * in = *buf_in, * buf; + if(!in->data) + { + /* If the input buffer is end of stream, send out an empty one to the next stage as well. */ + *buf_out = hb_buffer_init(0); + return HB_WORK_OK; + } + avpicture_fill( &pv->pic_raw, in->data, PIX_FMT_YUV420P, title->width, title->height ); |