summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2008-08-22 19:03:05 +0000
committerLuca Abeni <lucabe72@email.it>2008-08-22 19:03:05 +0000
commit26efefc52c8d16913a17eb518983da9d26888f24 (patch)
treea3ce68b5ab1773280b7a69b43821b76e3e95bf72 /libavformat
parentb0f5852a13cb9888e997b87ec3604bcff88c0c36 (diff)
Do not set timestamp information for a non existing AVStream
(fix a bug in the RTP demuxer) Originally committed as revision 14909 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtpdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 3500cad717..70b29e73dd 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -281,7 +281,6 @@ RTPDemuxContext *rtp_parse_open(AVFormatContext *s1, AVStream *st, URLContext *r
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(AVFormatContext *s1, AVStream *st, URLContext *r
return NULL;
}
} else {
+ av_set_pts_info(st, 32, 1, 90000);
switch(st->codec->codec_id) {
case CODEC_ID_MPEG1VIDEO:
case CODEC_ID_MPEG2VIDEO: