OSDN Git Service
(root)
/
handbrake-jp
/
handbrake-jp-git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LinGui: Internalize all the icons so I don't have to install them in
[handbrake-jp/handbrake-jp-git.git]
/
libhb
/
encvorbis.c
diff --git
a/libhb/encvorbis.c
b/libhb/encvorbis.c
index
136096a
..
47a6077
100644
(file)
--- a/
libhb/encvorbis.c
+++ b/
libhb/encvorbis.c
@@
-1,7
+1,7
@@
/* $Id: encvorbis.c,v 1.6 2005/03/05 15:08:32 titer Exp $
This file is part of the HandBrake source code.
/* $Id: encvorbis.c,v 1.6 2005/03/05 15:08:32 titer Exp $
This file is part of the HandBrake source code.
- Homepage: <http://handbrake.
m0k.org
/>.
+ Homepage: <http://handbrake.
fr
/>.
It may be used under the terms of the GNU General Public License. */
#include "hb.h"
It may be used under the terms of the GNU General Public License. */
#include "hb.h"
@@
-252,6
+252,14
@@
int encvorbisWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
hb_work_private_t * pv = w->private_data;
hb_buffer_t * buf;
hb_work_private_t * pv = w->private_data;
hb_buffer_t * buf;
+ if ( (*buf_in)->size <= 0 )
+ {
+ /* EOF on input - send it downstream & say we're done */
+ *buf_out = *buf_in;
+ *buf_in = NULL;
+ return HB_WORK_DONE;
+ }
+
hb_list_add( pv->list, *buf_in );
*buf_in = NULL;
hb_list_add( pv->list, *buf_in );
*buf_in = NULL;