mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 21:07:29 +01:00
Added support for checking whether a RTP demuxer contains combined audio_video data.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10478 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fdedb6606a
commit
4867e17bfa
@ -263,6 +263,13 @@ extern "C" int demux_is_mpeg_rtp_stream(demuxer_t* demuxer) {
|
||||
return (rtpState->flags&RTPSTATE_IS_MPEG12_VIDEO) != 0;
|
||||
}
|
||||
|
||||
extern "C" int demux_is_multiplexed_rtp_stream(demuxer_t* demuxer) {
|
||||
// Get the RTP state that was stored in the demuxer's 'priv' field:
|
||||
RTPState* rtpState = (RTPState*)(demuxer->priv);
|
||||
|
||||
return (rtpState->flags&RTPSTATE_IS_MULTIPLEXED) != 0;
|
||||
}
|
||||
|
||||
static demux_packet_t* getBuffer(demuxer_t* demuxer, demux_stream_t* ds,
|
||||
Boolean mustGetNewData,
|
||||
float& ptsBehind); // forward
|
||||
|
Loading…
Reference in New Issue
Block a user