[FFmpeg-cvslog] r14909 - trunk/libavformat/rtpdec.c
lucabe
subversion
Fri Aug 22 21:03:05 CEST 2008
Author: lucabe
Date: Fri Aug 22 21:03:05 2008
New Revision: 14909
Log:
Do not set timestamp information for a non existing AVStream
(fix a bug in the RTP demuxer)
Modified:
trunk/libavformat/rtpdec.c
Modified: trunk/libavformat/rtpdec.c
==============================================================================
--- trunk/libavformat/rtpdec.c (original)
+++ trunk/libavformat/rtpdec.c Fri Aug 22 21:03:05 2008
@@ -281,7 +281,6 @@ RTPDemuxContext *rtp_parse_open(AVFormat
s->st = st;
s->rtp_payload_data = rtp_payload_data;
rtp_init_statistics(&s->statistics, 0); // do we know the initial sequence from sdp?
- av_set_pts_info(s->st, 32, 1, 90000);
if (!strcmp(ff_rtp_enc_name(payload_type), "MP2T")) {
s->ts = mpegts_parse_open(s->ic);
if (s->ts == NULL) {
@@ -289,6 +288,7 @@ RTPDemuxContext *rtp_parse_open(AVFormat
return NULL;
}
} else {
+ av_set_pts_info(st, 32, 1, 90000);
switch(st->codec->codec_id) {
case CODEC_ID_MPEG1VIDEO:
case CODEC_ID_MPEG2VIDEO:
More information about the ffmpeg-cvslog
mailing list