summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-09-16 00:15:37 +0000
committerjstebbins <[email protected]>2011-09-16 00:15:37 +0000
commit1a521e3ac23d7036823ae3b157e9a7c7719b2cdd (patch)
tree3e416f16dc16d83b29b1b9931a68af8a66bbbce2 /libhb
parent99b2f89cfc6e63fc34d5c7e8311f0b8124da57a0 (diff)
don't pass unhandled TS/PS stream types to demux
I ran across a stream that has bad timestamps in the Teletext track which causes the demux to think there are discontinuities and drop packets. makes a real mess of things. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4224 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/stream.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libhb/stream.c b/libhb/stream.c
index b418af407..d9252550d 100644
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -2266,6 +2266,8 @@ static void hb_ts_stream_init(hb_stream_t *stream)
ts_stream_type( stream, i ),
stream->ts.list[i].is_pcr ? " (PCR)" : "");
}
+ if ( ts_stream_kind( stream, i ) == N )
+ hb_stream_delete_ts_entry(stream, i);
}
}
@@ -2325,6 +2327,7 @@ static void hb_ps_stream_init(hb_stream_t *stream)
stream_type_name2(stream,
&stream->pes.list[i]),
stream->pes.list[i].stream_type );
+ hb_stream_delete_ps_entry(stream, i);
}
}
}