summaryrefslogtreecommitdiffstats
path: root/libavformat/rmdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r--libavformat/rmdec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index 055abf6..f3e51a1 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -687,6 +687,10 @@ ff_rm_retrieve_cache (AVFormatContext *s, ByteIOContext *pb,
st->codec->block_align);
}
rm->audio_pkt_cnt--;
+ if ((pkt->pts = ast->audiotimestamp) != AV_NOPTS_VALUE) {
+ ast->audiotimestamp = AV_NOPTS_VALUE;
+ pkt->flags = PKT_FLAG_KEY;
+ } else
pkt->flags = 0;
pkt->stream_index = st->index;
OpenPOWER on IntegriCloud