diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2009-03-16 12:59:18 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2009-03-16 12:59:18 +0000 |
commit | 55d330f913747a17b50502fc148208adcd4e54bc (patch) | |
tree | da5cad99a3df2870d265c21913e103156aa0b890 /libavformat/rmdec.c | |
parent | c5efef7be9a088f2cf4db0d2cf4920da9fa3e0a8 (diff) | |
download | ffmpeg-55d330f913747a17b50502fc148208adcd4e54bc.tar.gz |
Mark the first output audio frame as keyframe (separate patch from previous,
as requested by Kostya). See "[PATCH] rmdec.c: remove cache access
duplication".
Originally committed as revision 18010 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r-- | libavformat/rmdec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 055abf65be..f3e51a1731 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; |