Always set VC1 track as "probed OK"

This commit is contained in:
Moritz Bunkus 2011-09-17 23:23:41 +02:00
parent 52f6f8ce4d
commit 4b930d2ccb
2 changed files with 8 additions and 0 deletions

View File

@ -229,6 +229,11 @@ mpeg_ts_track_c::new_stream_v_avc() {
return 0;
}
int
mpeg_ts_track_c::new_stream_v_vc1() {
return 0 == pes_payload->get_size() ? FILE_STATUS_MOREDATA : 0;
}
int
mpeg_ts_track_c::new_stream_a_mpeg() {
mp3_header_t header;
@ -823,6 +828,8 @@ mpeg_ts_reader_c::probe_packet_complete(mpeg_ts_track_ptr &track,
result = track->new_stream_v_mpeg_1_2();
else if (FOURCC('A', 'V', 'C', '1') == track->fourcc)
result = track->new_stream_v_avc();
else if (FOURCC('W', 'V', 'C', '1') == track->fourcc)
result = track->new_stream_v_vc1();
track->pes_payload->set_chunk_size(512 * 1024);

View File

@ -221,6 +221,7 @@ public:
int new_stream_v_mpeg_1_2();
int new_stream_v_avc();
int new_stream_v_vc1();
int new_stream_a_mpeg();
int new_stream_a_ac3();
int new_stream_a_dts();