[FFmpeg-cvslog] r18010 - trunk/libavformat/rmdec.c
rbultje
subversion
Mon Mar 16 13:59:19 CET 2009
Author: rbultje
Date: Mon Mar 16 13:59:18 2009
New Revision: 18010
Log:
Mark the first output audio frame as keyframe (separate patch from previous,
as requested by Kostya). See "[PATCH] rmdec.c: remove cache access
duplication".
Modified:
trunk/libavformat/rmdec.c
Modified: trunk/libavformat/rmdec.c
==============================================================================
--- trunk/libavformat/rmdec.c Mon Mar 16 13:57:49 2009 (r18009)
+++ trunk/libavformat/rmdec.c Mon Mar 16 13:59:18 2009 (r18010)
@@ -687,6 +687,10 @@ ff_rm_retrieve_cache (AVFormatContext *s
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;
More information about the ffmpeg-cvslog
mailing list