summaryrefslogtreecommitdiff
path: root/libavformat/rmdec.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2008-12-13 21:37:27 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2008-12-13 21:37:27 +0000
commita15ebf34c77c7c93aef70caeeace538f47eaab8a (patch)
tree2ed9198c79fd39059ad3c627030aa3ea08fabb6f /libavformat/rmdec.c
parent616deed28f0626a98022837488b222aa158ce3b4 (diff)
Don't access RMContext directly in rdt.c. Rather, use the return value of
ff_rm_parse_packet() to indicate whether more audio packets are available in the demuxer from the last RM frame, and save that in the RDT parsing context. See patch/discussion in "[PATCH] rdt.c: don't access RMContext" on ML. Originally committed as revision 16110 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r--libavformat/rmdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index ea4cf809e9..440443c01d 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -644,7 +644,7 @@ ff_rm_parse_packet (AVFormatContext *s, ByteIOContext *pb,
if (*flags & 2)
pkt->flags |= PKT_FLAG_KEY;
- return 0;
+ return st->codec->codec_type == CODEC_TYPE_AUDIO ? rm->audio_pkt_cnt : 0;
}
void