# HG changeset patch # User rbultje # Date 1220400454 0 # Node ID d50c5556cb8283c619435ec1d6fe6e0ae33a28f7 # Parent 9a589ae59655126993cc30fa12bbcf231fd2953c Move av_set_pts_info() inside the mdpr_read_codecdata() call, so that it is 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. diff -r 9a589ae59655 -r d50c5556cb82 rmdec.c --- a/rmdec.c Wed Sep 03 00:05:55 2008 +0000 +++ b/rmdec.c Wed Sep 03 00:07:34 2008 +0000 @@ -197,6 +197,7 @@ 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 @@ 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;