3 This file is part of the HandBrake source code.
4 Homepage: <http://handbrake.fr/>.
5 It may be used under the terms of the GNU General Public License. */
9 struct hb_work_private_s
14 int encsubInit( hb_work_object_t * w, hb_job_t * job )
16 hb_work_private_t * pv;
18 pv = calloc( 1, sizeof( hb_work_private_t ) );
26 int encsubWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
27 hb_buffer_t ** buf_out )
29 hb_buffer_t * in = *buf_in;
31 if (w->subtitle->source != VOBSUB)
33 // Invalid source, send EOF, this shouldn't ever happen
34 hb_log("encvobsub: invalid subtitle source");
35 hb_buffer_close( buf_in );
36 *buf_out = hb_buffer_init(0);
40 /* EOF on input stream - send it downstream & say that we're done */
47 * Not much to do, just pass the buffer on.
48 * Some day, we may re-encode bd subtitles here ;)
59 void encsubClose( hb_work_object_t * w )
61 free( w->private_data );
64 hb_work_object_t hb_encvobsub =