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: don't disable subme 10 when psy-rd is 0
[handbrake-jp/handbrake-jp-git.git]
/
libhb
/
decvobsub.c
diff --git
a/libhb/decvobsub.c
b/libhb/decvobsub.c
index
e5633d5
..
c4474f9
100644
(file)
--- a/
libhb/decvobsub.c
+++ b/
libhb/decvobsub.c
@@
-98,6
+98,15
@@
int decsubWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
pv->pts = in->start;
}
}
pv->pts = in->start;
}
}
+ else
+ {
+ // bad size, must have lost sync
+ // force re-sync
+ if ( pv->buf != NULL )
+ hb_buffer_close( &pv->buf );
+ pv->size_sub = 0;
+ }
+
}
*buf_out = NULL;
}
*buf_out = NULL;
@@
-484,7
+493,7
@@
static hb_buffer_t * Decode( hb_work_object_t * w )
/* Get infos about the subtitle */
ParseControls( w );
/* Get infos about the subtitle */
ParseControls( w );
- if( job->indepth_scan || ( w->subtitle->force && pv->pts_forced == 0 ) )
+ if( job->indepth_scan || ( w->subtitle->
config.
force && pv->pts_forced == 0 ) )
{
/*
* Don't encode subtitles when doing a scan.
{
/*
* Don't encode subtitles when doing a scan.
@@
-495,7
+504,7
@@
static hb_buffer_t * Decode( hb_work_object_t * w )
return NULL;
}
return NULL;
}
- if (w->subtitle->dest == PASSTHRUSUB)
+ if (w->subtitle->
config.
dest == PASSTHRUSUB)
{
pv->buf->start = pv->pts_start;
pv->buf->stop = pv->pts_stop;
{
pv->buf->start = pv->pts_start;
pv->buf->stop = pv->pts_stop;