changeset 4735:bf01c2a17c8d libavformat

Mark the first output audio frame as keyframe (separate patch from previous, as requested by Kostya). See "[PATCH] rmdec.c: remove cache access duplication".
author rbultje
date Mon, 16 Mar 2009 12:59:18 +0000
parents dfcf66d4a613
children c0e7d62efe9c
files rmdec.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;