# HG changeset patch # User rbultje # Date 1237208358 0 # Node ID bf01c2a17c8d3a7ec7166b783854a131651968a1 # Parent dfcf66d4a61376cb31f54903293375fd7ada3cc6 Mark the first output audio frame as keyframe (separate patch from previous, as requested by Kostya). See "[PATCH] rmdec.c: remove cache access duplication". diff -r dfcf66d4a613 -r bf01c2a17c8d rmdec.c --- a/rmdec.c Mon Mar 16 12:57:49 2009 +0000 +++ b/rmdec.c Mon Mar 16 12:59:18 2009 +0000 @@ -687,6 +687,10 @@ 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;