diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-02-09 17:06:38 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-02-09 17:06:38 +0000 |
commit | e19879533d90f6f51acccd70d25e755898412b89 (patch) | |
tree | bfd138355818d9a27a48d9f3f0c9ba6dbff2b07a | |
parent | bbe16b15e959225f7a0ce067cfbbf720ca8931dd (diff) |
Motion-JPEG RTP streams can now be played. Some MPEG-4 ES video RTP
streams can also be played.
patch by Ross Finlayson <finlayson@live.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9371 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/demux_rtp.cpp | 1 | ||||
-rw-r--r-- | libmpdemux/demux_rtp_codec.cpp | 13 |
2 files changed, 11 insertions, 3 deletions
diff --git a/libmpdemux/demux_rtp.cpp b/libmpdemux/demux_rtp.cpp index 42bb5bb67c..75cf85e78e 100644 --- a/libmpdemux/demux_rtp.cpp +++ b/libmpdemux/demux_rtp.cpp @@ -147,6 +147,7 @@ extern "C" void demux_open_rtp(demuxer_t* demuxer) { rtpState->sdpDescription = sdpDescription; rtpState->rtspClient = rtspClient; rtpState->mediaSession = mediaSession; + rtpState->audioBufferQueue = rtpState->videoBufferQueue = NULL; rtpState->firstSyncTime.tv_sec = rtpState->firstSyncTime.tv_usec = 0; demuxer->priv = rtpState; diff --git a/libmpdemux/demux_rtp_codec.cpp b/libmpdemux/demux_rtp_codec.cpp index 28e7f2e184..4ab6427fac 100644 --- a/libmpdemux/demux_rtp_codec.cpp +++ b/libmpdemux/demux_rtp_codec.cpp @@ -46,6 +46,16 @@ void rtpCodecInitialize_video(demuxer_t* demuxer, } else if (strcmp(subsession->codecName(), "H261") == 0) { bih->biCompression = sh_video->format = mmioFOURCC('H','2','6','1'); + } else if (strcmp(subsession->codecName(), "JPEG") == 0) { + bih->biCompression = sh_video->format + = mmioFOURCC('M','J','P','G'); +#if (LIVEMEDIA_LIBRARY_VERSION_INT < 1044662400) + fprintf(stderr, "WARNING: This video stream might not play correctly. Please upgrade to version \"2003.02.08\" or later of the \"LIVE.COM Streaming Media\" libraries.\n"); +#endif + } else if (strcmp(subsession->codecName(), "MP4V-ES") == 0) { + bih->biCompression = sh_video->format + = mmioFOURCC('m','p','4','v'); + //flags |= RTPSTATE_IS_MPEG; // MPEG hdr checking in video.c doesn't work! } else if (strcmp(subsession->codecName(), "X-QT") == 0 || strcmp(subsession->codecName(), "X-QUICKTIME") == 0) { // QuickTime generic RTP format, as described in @@ -130,9 +140,6 @@ void rtpCodecInitialize_audio(demuxer_t* demuxer, wf->cbSize = 0; } else if (strcmp(subsession->codecName(), "MP4A-LATM") == 0) { wf->wFormatTag = sh_audio->format = mmioFOURCC('m','p','4','a'); -#ifndef HAVE_FAAD - fprintf(stderr, "WARNING: Playing MPEG-4 (AAC) Audio requires the \"faad\" library!\n"); -#endif #if (LIVEMEDIA_LIBRARY_VERSION_INT < 1042761600) fprintf(stderr, "WARNING: This audio stream might not play correctly. Please upgrade to version \"2003.01.17\" or later of the \"LIVE.COM Streaming Media\" libraries.\n"); #else |