diff rmdec.c @ 4135:fd0fc1e26d82 libavformat

Add audio_pkt_cnt return value to ff_rm_retrieve_cache(). See discussion in "[PATCH] oops I broke rdt.c" mailinglist thread.
author rbultje
date Sun, 28 Dec 2008 05:58:23 +0000
parents 90a12fced519
children aff3f79228d3
line wrap: on
line diff
--- a/rmdec.c	Sun Dec 28 05:55:09 2008 +0000
+++ b/rmdec.c	Sun Dec 28 05:58:23 2008 +0000
@@ -681,7 +681,7 @@
     return st->codec->codec_type == CODEC_TYPE_AUDIO ? rm->audio_pkt_cnt : 0;
 }
 
-void
+int
 ff_rm_retrieve_cache (AVFormatContext *s, ByteIOContext *pb,
                       AVStream *st, RMStream *ast, AVPacket *pkt)
 {
@@ -700,6 +700,8 @@
     rm->audio_pkt_cnt--;
     pkt->flags = 0;
     pkt->stream_index = st->index;
+
+    return rm->audio_pkt_cnt;
 }
 
 static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)