X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-commonfmt%2Fsrc%2Fdemuxers%2Fy4m.rs;h=f3030604e5d1e90c0081bc0c8aa82fd04d111da6;hb=820b43313ea6d0e03c7bf063ee6a64f3ff0cf659;hp=093d4441e79bf151e854c143fc509ad73520a6cb;hpb=dbb2cbc9c1274135470608275c1893a201cba731;p=nihav.git diff --git a/nihav-commonfmt/src/demuxers/y4m.rs b/nihav-commonfmt/src/demuxers/y4m.rs index 093d444..f303060 100644 --- a/nihav-commonfmt/src/demuxers/y4m.rs +++ b/nihav-commonfmt/src/demuxers/y4m.rs @@ -20,7 +20,7 @@ impl<'a> DemuxCore<'a> for Y4MDemuxer<'a> { let vhdr = NAVideoInfo::new(self.width, self.height, false, format); let vci = NACodecTypeInfo::Video(vhdr); let vinfo = NACodecInfo::new("rawvideo", vci, None); - if let None = strmgr.add_stream(NAStream::new(StreamType::Video, 0, vinfo, self.fps_num, self.fps_den, 0)) { + if strmgr.add_stream(NAStream::new(StreamType::Video, 0, vinfo, self.fps_num, self.fps_den, 0)).is_none() { return Err(DemuxerError::MemoryError); }