diff options
author | van <[email protected]> | 2008-08-09 19:26:28 +0000 |
---|---|---|
committer | van <[email protected]> | 2008-08-09 19:26:28 +0000 |
commit | 430cf058f4065467801e3f37d320598a3181b589 (patch) | |
tree | 958ed3a2833275e3577b944c4c53adb7001d3e44 /libhb | |
parent | 4be456c1c6b177a1774a8c998d3ac39c94292057 (diff) |
Make sure we never return an unitialized buffer chain to work_loop.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1622 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/encx264.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c index f40903d9d..51ba5097e 100644 --- a/libhb/encx264.c +++ b/libhb/encx264.c @@ -566,6 +566,8 @@ int encx264Work( hb_work_object_t * w, hb_buffer_t ** buf_in, hb_work_private_t *pv = w->private_data; hb_buffer_t *in = *buf_in; + *buf_out = NULL; + if( in->size <= 0 ) { // EOF on input. Flush any frames still in the decoder then |