projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
introduce NADecoderSupport and buffer pools
[nihav.git]
/
nihav-realmedia
/
src
/
codecs
/
rv10.rs
diff --git
a/nihav-realmedia/src/codecs/rv10.rs
b/nihav-realmedia/src/codecs/rv10.rs
index 733b6776288f53faeb1b5554bf1d1e75e50794b9..66e8ff1ffb7c84391bf9352914dbe7cda20dcc6f 100644
(file)
--- a/
nihav-realmedia/src/codecs/rv10.rs
+++ b/
nihav-realmedia/src/codecs/rv10.rs
@@
-403,7
+403,7
@@
impl RealVideo10Decoder {
}
impl NADecoder for RealVideo10Decoder {
}
impl NADecoder for RealVideo10Decoder {
- fn init(&mut self, info: NACodecInfoRef) -> DecoderResult<()> {
+ fn init(&mut self,
_supp: &mut NADecoderSupport,
info: NACodecInfoRef) -> DecoderResult<()> {
if let NACodecTypeInfo::Video(vinfo) = info.get_properties() {
let w = vinfo.get_width();
let h = vinfo.get_height();
if let NACodecTypeInfo::Video(vinfo) = info.get_properties() {
let w = vinfo.get_width();
let h = vinfo.get_height();
@@
-436,7
+436,7
@@
println!("???");
Err(DecoderError::InvalidData)
}
}
Err(DecoderError::InvalidData)
}
}
- fn decode(&mut self, pkt: &NAPacket) -> DecoderResult<NAFrameRef> {
+ fn decode(&mut self,
_supp: &mut NADecoderSupport,
pkt: &NAPacket) -> DecoderResult<NAFrameRef> {
let src = pkt.get_buffer();
//println!(" decode frame size {}, {} slices", src.len(), src[0]+1);
let src = pkt.get_buffer();
//println!(" decode frame size {}, {} slices", src.len(), src[0]+1);