diff --git a/src/input/r_mpeg_ts.cpp b/src/input/r_mpeg_ts.cpp index 1ecea4cf1..52929c48a 100644 --- a/src/input/r_mpeg_ts.cpp +++ b/src/input/r_mpeg_ts.cpp @@ -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); diff --git a/src/input/r_mpeg_ts.h b/src/input/r_mpeg_ts.h index e98fc944e..55c77b17d 100644 --- a/src/input/r_mpeg_ts.h +++ b/src/input/r_mpeg_ts.h @@ -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();