summaryrefslogtreecommitdiffstats
path: root/libhb/bd.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2012-03-27 20:11:26 +0000
committerjstebbins <[email protected]>2012-03-27 20:11:26 +0000
commit45b8f81a2e184e2b7deaf47afc49483766191a27 (patch)
tree30ed0892995cb4ad3255909f69269c453000800a /libhb/bd.c
parent7eb7737023be00fa0dc9be75a4984b80c0e5ce57 (diff)
Rework filter pipeline
This patch enhances the filter objects. The 2 key improvements are: 1. A filter can change the image dimensions as frames pass through it. 2. A filter can output more than one frame. In addition, I have: Moved cropping & scalling into a filter object Added 90 degree rotation to the rotate filter Moved subtitle burn-in rendering to a filter object. Moved VFR/CFR handling into a framerate shaping filter object. Removed render.c since all it's responsibilities got moved to filters. Improves VOBSUB and SSA subtitle handling. Allows subtitle animations. SSA karaoke support. My apologies in advance if anything breaks ;) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4546 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/bd.c')
-rw-r--r--libhb/bd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libhb/bd.c b/libhb/bd.c
index 93ca20d02..9ec4c078a 100644
--- a/libhb/bd.c
+++ b/libhb/bd.c
@@ -535,9 +535,8 @@ int hb_bd_seek_pts( hb_bd_t * d, uint64_t pts )
int hb_bd_seek_chapter( hb_bd_t * d, int c )
{
- int64_t pos;
d->next_chap = c;
- pos = bd_seek_chapter( d->bd, c - 1 );
+ bd_seek_chapter( d->bd, c - 1 );
hb_ts_stream_reset(d->stream);
return 1;
}
@@ -612,8 +611,8 @@ hb_buffer_t * hb_bd_read( hb_bd_t * d )
b = hb_ts_decode_pkt( d->stream, buf+4 );
if ( b )
{
- b->discontinuity = discontinuity;
- b->new_chap = new_chap;
+ b->s.discontinuity = discontinuity;
+ b->s.new_chap = new_chap;
return b;
}
}