changeset 3750:ff6f5f6d55e6 libavformat

Do not set timestamp information for a non existing AVStream (fix a bug in the RTP demuxer)
author lucabe
date Fri, 22 Aug 2008 19:03:05 +0000
parents 84ad19dea09f
children 772eba9f4b30
files rtpdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rtpdec.c	Fri Aug 22 04:12:52 2008 +0000
+++ b/rtpdec.c	Fri Aug 22 19:03:05 2008 +0000
@@ -281,7 +281,6 @@
     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 @@
             return NULL;
         }
     } else {
+        av_set_pts_info(st, 32, 1, 90000);
         switch(st->codec->codec_id) {
         case CODEC_ID_MPEG1VIDEO:
         case CODEC_ID_MPEG2VIDEO: