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/encxvid.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/encxvid.c')
-rw-r--r-- | libhb/encxvid.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libhb/encxvid.c b/libhb/encxvid.c index 6d869ae36..fbaa5a135 100644 --- a/libhb/encxvid.c +++ b/libhb/encxvid.c @@ -149,6 +149,13 @@ int encxvidWork( hb_work_object_t * w, hb_buffer_t ** buf_in, xvid_enc_frame_t frame; hb_buffer_t * in = *buf_in, * buf; + /* If this is the last empty frame, we're done */ + if(!in->data) + { + *buf_out = NULL; + return HB_WORK_DONE; + } + /* Should be way too large */ buf = hb_buffer_init( 3 * job->width * job->height / 2 ); buf->start = in->start; |