diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2008-12-28 05:58:23 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2008-12-28 05:58:23 +0000 |
commit | a9f84821c55b70e48195095d254c78fd5a886f75 (patch) | |
tree | 421ce19c0f1704f18c0297acc0c48134cd665676 /libavformat/rmdec.c | |
parent | 5d88c2647def2557637077e9284cfe9806954502 (diff) | |
download | ffmpeg-a9f84821c55b70e48195095d254c78fd5a886f75.tar.gz |
Add audio_pkt_cnt return value to ff_rm_retrieve_cache(). See discussion in
"[PATCH] oops I broke rdt.c" mailinglist thread.
Originally committed as revision 16368 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r-- | libavformat/rmdec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 39af3d1a28..e8ecc927d1 100644 --- a/libavformat/rmdec.c +++ b/libavformat/rmdec.c @@ -681,7 +681,7 @@ ff_rm_parse_packet (AVFormatContext *s, ByteIOContext *pb, 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 @@ ff_rm_retrieve_cache (AVFormatContext *s, ByteIOContext *pb, 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) |