Commit b2e78616 authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Thomas Daede

rav1e: Print a more friendly error message when input is not y4m

parent dd10d276
......@@ -22,7 +22,7 @@ use decoder::Decoder;
fn main() {
let mut cli = parse_cli();
let mut y4m_dec = y4m::decode(&mut cli.io.input).unwrap();
let mut y4m_dec = y4m::decode(&mut cli.io.input).expect("input is not a y4m file");
let video_info = y4m_dec.get_video_details();
let mut y4m_enc = match cli.io.rec.as_mut() {
Some(rec) => Some(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment