+ #[cfg(feature="hwaccel")]
+ DecoderType::VideoHW(ref mut vdec) => {
+ let _ = vdec.queue_pkt(pkt);
+ while let Some(frm) = vdec.get_frame() {
+ let bt = frm.get_buffer();
+ if let NABufferType::None = bt { continue; }
+ let ts = frm.get_dts().unwrap_or_else(|| frm.get_pts().unwrap_or(0));
+ return self.convert_buf(bt, ts);
+ }
+ },