hevc: make avcodec_decode_video2() fail if get_format() fails