summaryrefslogtreecommitdiffstats
path: root/libhb/fifo.c
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2007-04-16 16:58:57 +0000
committerjbrjake <[email protected]>2007-04-16 16:58:57 +0000
commit1b38e1511ba75646540f6d2b90b21713614de392 (patch)
treed82a8a528f2c1d6201167d26e5615b5a23b0d145 /libhb/fifo.c
parenta715de4c2ff593e121fbfa394409eff4e493415b (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/fifo.c')
-rw-r--r--libhb/fifo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libhb/fifo.c b/libhb/fifo.c
index 93e3e162e..323406538 100644
--- a/libhb/fifo.c
+++ b/libhb/fifo.c
@@ -22,6 +22,8 @@ hb_buffer_t * hb_buffer_init( int size )
b->alloc = size;
b->size = size;
+ if (!size)
+ return b;
#if defined( SYS_DARWIN ) || defined( SYS_FREEBSD )
b->data = malloc( size );
#elif defined( SYS_CYGWIN )