]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Move av_set_pts_info() inside the mdpr_read_codecdata() call, so that it is
authorrbultje <rbultje@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 3 Sep 2008 00:07:34 +0000 (00:07 +0000)
committerrbultje <rbultje@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 3 Sep 2008 00:07:34 +0000 (00:07 +0000)
shared between the RM demuxer and the RTSP/RDT parser; both use the same
timebase. See discussion in "[PATCH] rmdec.c: move av_set_pts_info()" on ML.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15164 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/rmdec.c

index 6414fa771ab97a28dcd9551f76059b1c62ef133a..cb3863b8a66a034a7e3a8048765cae3df069c38b 100644 (file)
@@ -197,6 +197,7 @@ ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVStream *st, int codec_data_size
     int size;
     int64_t codec_pos;
 
+    av_set_pts_info(st, 64, 1, 1000);
     codec_pos = url_ftell(pb);
     v = get_be32(pb);
     if (v == MKTAG(0xfd, 'a', 'r', '.')) {
@@ -349,7 +350,6 @@ static int rm_read_header(AVFormatContext *s, AVFormatParameters *ap)
             get_str8(pb, buf, sizeof(buf)); /* desc */
             get_str8(pb, buf, sizeof(buf)); /* mimetype */
             st->codec->codec_type = CODEC_TYPE_DATA;
-            av_set_pts_info(st, 64, 1, 1000);
             if (ff_rm_read_mdpr_codecdata(s, st, get_be32(pb)) < 0)
                 return -1;
             break;