mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-01 07:37:09 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user