Mercurial > libavformat.hg
comparison rmdec.c @ 4096:233ba738a68e libavformat
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.
author | rbultje |
---|---|
date | Sat, 13 Dec 2008 21:37:27 +0000 |
parents | 56204ba7a2c5 |
children | f8a743bd2df8 |
comparison
equal
deleted
inserted
replaced
4095:27f4b31bc790 | 4096:233ba738a68e |
---|---|
642 | 642 |
643 pkt->pts= *timestamp; | 643 pkt->pts= *timestamp; |
644 if (*flags & 2) | 644 if (*flags & 2) |
645 pkt->flags |= PKT_FLAG_KEY; | 645 pkt->flags |= PKT_FLAG_KEY; |
646 | 646 |
647 return 0; | 647 return st->codec->codec_type == CODEC_TYPE_AUDIO ? rm->audio_pkt_cnt : 0; |
648 } | 648 } |
649 | 649 |
650 void | 650 void |
651 ff_rm_retrieve_cache (AVFormatContext *s, ByteIOContext *pb, | 651 ff_rm_retrieve_cache (AVFormatContext *s, ByteIOContext *pb, |
652 AVStream *st, AVPacket *pkt) | 652 AVStream *st, AVPacket *pkt) |