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
This commit is contained in:
Ronald S. Bultje
2008-12-13 21:37:27 +00:00
parent 616deed28f
commit a15ebf34c7
3 changed files with 10 additions and 7 deletions

View File

@ -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